1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 23:55:24 +00:00

fix linter warnings for bash

This commit is contained in:
catborise 2020-09-25 13:26:17 +03:00
parent 32343c1ddc
commit ba8fa20737

View file

@ -1,8 +1,8 @@
#!/bin/sh #!/bin/sh
# `/sbin/setuser www-data` runs the given command as the user `www-data`. # `/sbin/setuser www-data` runs the given command as the user `www-data`.
RUNAS=`which setuser` RUNAS=$(which setuser)
[ -z $RUNAS ] && RUNAS="`which sudo` -u" [ -z "$RUNAS" ] && RUNAS="$(which sudo) -u"
USER=www-data USER=www-data
DJANGO_PROJECT=/srv/webvirtcloud DJANGO_PROJECT=/srv/webvirtcloud
@ -14,5 +14,5 @@ NOVNCD=$DJANGO_PROJECT/console/novncd
LOG=/var/log/novncd.log LOG=/var/log/novncd.log
cd $DJANGO_PROJECT cd $DJANGO_PROJECT || exit
exec $RUNAS $USER $PYTHON $NOVNCD $PARAMS >> $LOG 2>&1 exec "$RUNAS" "$USER" "$PYTHON" "$NOVNCD" "$PARAMS" >> $LOG 2>&1