From 8480d5b28eb65b2b6e57d5da96d232fc999e2004 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 8 Aug 2019 12:10:48 +0200 Subject: Install: link creation --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index fdbad9e..d356c77 100755 --- a/install.sh +++ b/install.sh @@ -32,15 +32,18 @@ chown -R www-data:www-data /var/lib/uwsgi/run sed -s "s|#PASSWORD#|$PASSWORD|g;\ s|RESPONSIBLE_EMAIL = None|RESPONSIBLE_EMAIL = '$RESPONSIBLE_EMAIL'|;" \ commonnet/local_settings.py.sample > conf/local_settings.py +rm -f commonnet/local_settings.py ln -s "$PWD"/conf/local_settings.py commonnet/ sed -s "s|#URL#|$URL|g;" conf/uwsgi.ini.template > \ conf/uwsgi.ini -ln -s "$PWD"/conf/uwsgi.ini /etc/uwsgi/apps-enabled/ +rm -f /etc/uwsgi/apps-enabled/commonnet.ini +ln -s "$PWD"/conf/uwsgi.ini /etc/uwsgi/apps-enabled/commonnet.ini sed -s "s|#URL#|$URL|g;" conf/nginx.conf.template > \ conf/nginx.conf -ln -s "$PWD"/conf/nginx.conf /etc/nginx/sites-enabled/ +rm -f /etc/nginx/sites-enabled/commonnet.conf +ln -s "$PWD"/conf/nginx.conf /etc/nginx/sites-enabled/commonnet.conf echo " * Checking database $DB_NAME" if ! psql -l | grep -qs "$DB_NAME"; then -- cgit v1.2.3