mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
fix linter warnings for bash
This commit is contained in:
parent
32343c1ddc
commit
ba8fa20737
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue