From 7d38d249f4e09d1bcc128308e42d65d9c0122419 Mon Sep 17 00:00:00 2001 From: Jocelyn Delalande Date: Mon, 19 Jun 2017 01:20:59 +0200 Subject: [PATCH] Fix installation on domain root `APPLICATION_ROOT='/'` is not working, if we are on root, ihatemoney requires that the `APPLICATION_ROOT` setting is absent. --- scripts/install | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/install b/scripts/install index 47a5cf0..7194a63 100755 --- a/scripts/install +++ b/scripts/install @@ -92,6 +92,8 @@ sed -i "s@MY_SECRET_KEY@$secret_key@" ../conf/settings.py sed -i "s/MY_EMAIL/$mails_sender/" ../conf/settings.py sed -i "s@MY_MYSQL_PW@$db_pwd@" ../conf/settings.py sed -i "s@MY_PATH@$path@" ../conf/settings.py +# Remove the conf directive if served at root +sed -i "/APPLICATION_ROOT='\/'/d" ../conf/settings.py sudo install -o ihatemoney -g ihatemoney -m 640 \ ../conf/settings.py /etc/ihatemoney/settings.py # The settings have to be stored here (on python path)