diff options
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |