fix location for pandoractl install

This commit is contained in:
j 2021-11-15 11:52:48 +00:00
parent 2fec9590f7
commit cc2b60453b

3
ctl
View file

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