forked from 0x2620/pandora
fix location for pandoractl install
This commit is contained in:
parent
2fec9590f7
commit
cc2b60453b
1 changed files with 1 additions and 2 deletions
3
ctl
3
ctl
|
@ -75,11 +75,10 @@ if [ `whoami` != 'root' ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
if [ "$action" = "install" ]; then
|
if [ "$action" = "install" ]; then
|
||||||
cd "`dirname "$0"`"
|
cd "`dirname "$self"`"
|
||||||
BASE=`pwd`
|
BASE=`pwd`
|
||||||
if [ -x /bin/systemctl ]; then
|
if [ -x /bin/systemctl ]; then
|
||||||
if [ -d /etc/systemd/system/ ]; then
|
if [ -d /etc/systemd/system/ ]; then
|
||||||
cd ${BASE}
|
|
||||||
for template in gunicorn_config.py encoding.conf tasks.conf; do
|
for template in gunicorn_config.py encoding.conf tasks.conf; do
|
||||||
if [ ! -e pandora/$template ]; then
|
if [ ! -e pandora/$template ]; then
|
||||||
$SUDO cp pandora/${template}.in pandora/$template
|
$SUDO cp pandora/${template}.in pandora/$template
|
||||||
|
|
Loading…
Reference in a new issue