1 Commits

Author SHA1 Message Date
406eb2cca6 Minor fix 2024-01-02 20:02:34 +01:00

9
rsm
View File

@@ -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