mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Fix several mis-ordered and missing instructions
This commit is contained in:
parent
1ef89e5ba2
commit
87fac52549
2 changed files with 6 additions and 5 deletions
|
@ -46,7 +46,11 @@ test -f $gunicorn_conf_path && ynh_die \
|
|||
"The Gunicorn configuration already exists at '${gunicorn_conf_path}'.
|
||||
You should safely delete it before restoring this app."
|
||||
|
||||
# Install debian packages dependencies
|
||||
sudo apt-get install -y -qq python-dev python-virtualenv supervisor libmysqlclient-dev
|
||||
|
||||
# Create the dedicated user
|
||||
sudo mkdir -p /opt/yunohost/
|
||||
sudo useradd ihatemoney -d /opt/yunohost/ihatemoney/ --create-home
|
||||
|
||||
# Restore the app files
|
||||
|
@ -67,9 +71,6 @@ sudo cp -a "conf/gunicorn.conf.py" "$gunicorn_conf_path"
|
|||
sudo cp -a "conf/supervisor.conf" "$supervisor_conf_path"
|
||||
sudo cp -a "conf/settings.py" "$ihatemoney_conf_path"
|
||||
|
||||
# Install debian packages dependencies
|
||||
sudo apt-get install -y -qq python-dev python-virtualenv supervisor libmysqlclient-dev
|
||||
|
||||
# Reload
|
||||
sudo systemctl reload nginx
|
||||
sudo systemctl restart supervisor
|
||||
|
|
|
@ -13,11 +13,11 @@ INSTALL_DIR=/opt/yunohost/ihatemoney
|
|||
PIP=${INSTALL_DIR}/venv/bin/pip
|
||||
NEW_REQUIREMENTS=${INSTALL_DIR}/src-new/requirements.txt
|
||||
|
||||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
# Source YunoHost helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
|
||||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
# Source local utils
|
||||
source _common.sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue