Skip to content

Commit

Permalink
New fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed Nov 15, 2020
1 parent aea6936 commit 733e017
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
10 changes: 0 additions & 10 deletions definitions/superadmin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1258,18 +1258,8 @@ SuperAdmin.version_update = function(callback) {
callback();
return;
}

var files_remove = ['release-cluster.js', 'release.js', 'debug.js', 'website-ssl.conf', 'website.conf'];
for (var i = 0; i < files_remove.length; i++)
files_remove[i] = PATH.databases(files_remove[i]);

var async = [];

async.push(function(next) {
// Remove useless files
PATH.unlink(files_remove, () => next());
});

// Upadte DB of alarms
async.push(function(next) {
// unlink old alarms
Expand Down
3 changes: 2 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ SA_PID=$(lsof -i :9999 | grep "LISTEN" | awk {'print $2'})
start_superadmin() {
echo "STARTING SUPERADMIN ON PORT 9999"
cp /www/superadmin/logs/debug.log "/www/logs/superadmin_$(date +%FT%H%M).log" 2>/dev/null
/usr/bin/node --nouse-idle-notification --expose-gc /www/superadmin/index.js 9999 --release > /www/superadmin/logs/debug.log &
mkdir -p /www/superadmin/logs/
/usr/bin/node --nouse-idle-notification --expose-gc /www/superadmin/index.js 9999 > /www/superadmin/logs/debug.log &
}

if [[ $SA_PID ]]
Expand Down
Loading

0 comments on commit 733e017

Please sign in to comment.