add retire.sh

this is a sudo script that retires the box
This commit is contained in:
girish@cloudron.io
2016-01-25 17:54:02 -08:00
parent 072962bbc3
commit 8170b490f2
4 changed files with 45 additions and 31 deletions

View File

@@ -790,5 +790,10 @@ function checkDiskSpace(callback) {
}
function retire(callback) {
shell.sudo('retire', [ RETIRE_CMD ], callback);
var data = {
isCustomDomain: config.isCustomDomain(),
fqdn: config.fqdn()
};
shell.sudo('retire', [ RETIRE_CMD, JSON.stringify(data) ], callback);
}