mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Fix installation on domain root
`APPLICATION_ROOT='/'` is not working, if we are on root, ihatemoney requires that the `APPLICATION_ROOT` setting is absent.
This commit is contained in:
parent
87fac52549
commit
7d38d249f4
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue