From ea3c90b82226cbdc15764911372fa3ac899c8be3 Mon Sep 17 00:00:00 2001 From: poka Date: Thu, 4 Jun 2020 16:23:35 +0200 Subject: [PATCH] correctly kill ssb-server --- zen/tools/make_G1SSB_secret.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index 58f71e1..400a1f4 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -111,8 +111,8 @@ if [[ ! $(which oasis) ]]; then npm -g install ssb-server ## ADD SSB-SERVER FOR PRIVATE SSB MESSAGING (TODO: integrate Feedless modules on LOVELand Portal) else echo "Stopping OASIS" - tokill=$(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | awk '{print $2}') - tokill+=$(ps auxf --sort=+utime | grep -w ssb-server | grep -v -E 'color=auto|grep' | awk '{print $2}') + ssbD=$(ps auxf --sort=+utime | grep -w oasis | grep -v -E 'color=auto|grep' | awk '{print $2}') + ssbD+=$(ps auxf --sort=+utime | grep -w ssb-server | grep -v -E 'color=auto|grep' | awk '{print $2}') for tokill in $ssbD; do kill -9 $tokill