From 48a815fd9883aab1821770a10746e27cd16de776 Mon Sep 17 00:00:00 2001 From: zeus Date: Sat, 21 Nov 2020 17:39:12 +0200 Subject: [PATCH] set --- startup.sh | 3 ++- supervisord-iot.conf | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/startup.sh b/startup.sh index de03f80..378430a 100644 --- a/startup.sh +++ b/startup.sh @@ -78,7 +78,8 @@ chmod +x /home/$USER/crond/playground-sync.sh read -r -d '' VAR < /home/$USER/crond/playground-npm-install.sh diff --git a/supervisord-iot.conf b/supervisord-iot.conf index f3ee434..f55fb2d 100644 --- a/supervisord-iot.conf +++ b/supervisord-iot.conf @@ -1,5 +1,6 @@ [program:ttyd] -command=bash -c 'sleep 5 && cd /home/node && sudo -u node ttyd --ssl --ssl-cert /home/node/ssl-ttyd/ca.crt --ssl-key /home/mode/ssl-ttyd/ca.key -c user:%(ENV_PASSWORD)s -p 8088 -u node bash' +#command=bash -c 'sleep 5 && cd /home/node && sudo -u node ttyd --ssl --ssl-cert /home/node/ssl-ttyd/ca.crt --ssl-key /home/mode/ssl-ttyd/ca.key -c user:%(ENV_PASSWORD)s -p 8088 -u node bash' +command=bash -c 'sleep 5 && cd /home/node && su -c \'ttyd --ssl --ssl-cert /home/node/ssl-ttyd/ca.crt --ssl-key /home/mode/ssl-ttyd/ca.key -c user:%(ENV_PASSWORD)s -p 8088 -u node bash\' - node ' stdout_logfile=/var/log/ttyd.log autorestart=true