mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Effective prefix configuration, using patched ihatemoney
This commit is contained in:
parent
eea29d89c8
commit
167414f3dd
2 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,7 @@ SQLACHEMY_ECHO = DEBUG
|
|||
SECRET_KEY = "MY_SECRET_KEY"
|
||||
|
||||
MAIL_DEFAULT_SENDER = ("Budget manager", "MY_EMAIL")
|
||||
APPLICATION_ROOT='MY_PATH'
|
||||
|
||||
try:
|
||||
from settings import *
|
||||
|
|
|
@ -60,6 +60,7 @@ sudo yunohost app setting ihatemoney mysqlpwd -v $db_pwd
|
|||
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
|
||||
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…
Reference in a new issue