forked from linuxer/Runit-Service-Manager
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 406eb2cca6 |
9
rsm
9
rsm
@@ -12,7 +12,7 @@
|
||||
# Date: August 29, 2018
|
||||
# License: MIT
|
||||
|
||||
RSM_VERSION='v1.4.8'
|
||||
RSM_VERSION='v1.4.9'
|
||||
|
||||
export RUNSVDIR=${RUNSVDIR:-/etc/runit/runsvdir}
|
||||
export SVDIR=${SVDIR:-/run/runit/service/}
|
||||
@@ -665,7 +665,12 @@ if ((do_usage > -1)); then
|
||||
fi
|
||||
|
||||
# move to the service directory
|
||||
cd "$SVDIR" || fatal "failed to enter dir: $SVDIR"
|
||||
if [ -L "$SVDIR" ]
|
||||
then
|
||||
cd "$SVDIR" || fatal "failed to enter dir: $SVDIR"
|
||||
else
|
||||
cd "$RUNSVDIR/default" || fatal "failed to enter dir: $FLDIR"
|
||||
fi
|
||||
|
||||
# figure out 'cmd' command
|
||||
if [[ -z $cmd ]]; then
|
||||
|
||||
Reference in New Issue
Block a user