diff --git a/.gitignore b/.gitignore index e3a95437..09047e5d 100644 --- a/.gitignore +++ b/.gitignore @@ -36,3 +36,5 @@ pandora/gunicorn_config.py .DS_Store .env overlay/ +pandora/encoding.conf +pandora/tasks.conf diff --git a/ctl b/ctl index b78183ba..4be430b8 100755 --- a/ctl +++ b/ctl @@ -43,9 +43,11 @@ if [ "$action" = "init" ]; then done cd ${BASE} $SUDO ./bin/pip install -r requirements.txt - if [ ! -e pandora/gunicorn_config.py ]; then - $SUDO cp pandora/gunicorn_config.py.in pandora/gunicorn_config.py - fi + for template in gunicorn_config.py encoding.conf tasks.conf; do + if [ ! -e pandora/$template ]; then + $SUDO cp pandora/${template}.in pandora/$template + fi + done exit 0 fi @@ -77,6 +79,11 @@ if [ "$action" = "install" ]; then BASE=`pwd` if [ -x /bin/systemctl ]; then if [ -d /etc/systemd/system/ ]; then + for template in gunicorn_config.py encoding.conf tasks.conf; do + if [ ! -e pandora/$template ]; then + $SUDO cp pandora/${template}.in pandora/$template + fi + done for service in $SERVICES; do if [ -e /lib/systemd/system/${service}.service ]; then rm -f /lib/systemd/system/${service}.service \ diff --git a/pandora/encoding.conf b/pandora/encoding.conf.in similarity index 100% rename from pandora/encoding.conf rename to pandora/encoding.conf.in diff --git a/pandora/tasks.conf b/pandora/tasks.conf.in similarity index 100% rename from pandora/tasks.conf rename to pandora/tasks.conf.in