From cc2b60453bf721a67c33ea75fd943595810561b6 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 15 Nov 2021 11:52:48 +0000 Subject: [PATCH] fix location for pandoractl install --- ctl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ctl b/ctl index ab9e2842..4237134e 100755 --- a/ctl +++ b/ctl @@ -75,11 +75,10 @@ if [ `whoami` != 'root' ]; then exit 1 fi if [ "$action" = "install" ]; then - cd "`dirname "$0"`" + cd "`dirname "$self"`" BASE=`pwd` if [ -x /bin/systemctl ]; then if [ -d /etc/systemd/system/ ]; then - cd ${BASE} for template in gunicorn_config.py encoding.conf tasks.conf; do if [ ! -e pandora/$template ]; then $SUDO cp pandora/${template}.in pandora/$template