1
0
Fork 0
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:
Jocelyn Delalande 2017-06-18 17:14:35 +02:00
parent 1ef89e5ba2
commit 87fac52549
2 changed files with 6 additions and 5 deletions

View file

@ -46,7 +46,11 @@ test -f $gunicorn_conf_path && ynh_die \
"The Gunicorn configuration already exists at '${gunicorn_conf_path}'. "The Gunicorn configuration already exists at '${gunicorn_conf_path}'.
You should safely delete it before restoring this app." 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 # Create the dedicated user
sudo mkdir -p /opt/yunohost/
sudo useradd ihatemoney -d /opt/yunohost/ihatemoney/ --create-home sudo useradd ihatemoney -d /opt/yunohost/ihatemoney/ --create-home
# Restore the app files # 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/supervisor.conf" "$supervisor_conf_path"
sudo cp -a "conf/settings.py" "$ihatemoney_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 # Reload
sudo systemctl reload nginx sudo systemctl reload nginx
sudo systemctl restart supervisor sudo systemctl restart supervisor

View file

@ -13,11 +13,11 @@ INSTALL_DIR=/opt/yunohost/ihatemoney
PIP=${INSTALL_DIR}/venv/bin/pip PIP=${INSTALL_DIR}/venv/bin/pip
NEW_REQUIREMENTS=${INSTALL_DIR}/src-new/requirements.txt NEW_REQUIREMENTS=${INSTALL_DIR}/src-new/requirements.txt
domain=$(ynh_app_setting_get "$app" domain)
# Source YunoHost helpers # Source YunoHost helpers
. /usr/share/yunohost/helpers . /usr/share/yunohost/helpers
domain=$(ynh_app_setting_get "$app" domain)
# Source local utils # Source local utils
source _common.sh source _common.sh