diff --git a/ctl b/ctl index ab9e2842d..4237134e2 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