summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-08 12:10:48 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-08-08 12:10:48 +0200
commit8480d5b28eb65b2b6e57d5da96d232fc999e2004 (patch)
tree3034194f150000e263e25696d118fa880f3bb2b5 /install.sh
parent3b13e3bbfe7347c9684981453eed212bc4a82dcd (diff)
downloadComm-on-net-8480d5b28eb65b2b6e57d5da96d232fc999e2004.tar.bz2
Comm-on-net-8480d5b28eb65b2b6e57d5da96d232fc999e2004.zip
Install: link creation
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh7
1 files 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