diff --git a/scripts/_common.sh b/scripts/_common.sh index d412bf9..428c56c 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -8,9 +8,9 @@ ynh_check_global_uwsgi_config () { cp ../conf/uwsgi-app@.service /etc/systemd/system/uwsgi-app@.service # make sure the folder for sockets exists and set authorizations - mkdir -p /var/run/uwsgi/ - chown root:www-data /var/run/uwsgi/ - chmod -R 775 /var/run/uwsgi/ + # make sure it exists on every startup + echo "d /var/run/uwsgi 0775 root www-data" > /usr/lib/tmpfiles.d/uwsgi.conf + systemd-tmpfiles --create # make sure the folder for logs exists and set authorizations mkdir -p /var/log/uwsgi/app/ diff --git a/scripts/install b/scripts/install index a8ebf42..e3a6fce 100755 --- a/scripts/install +++ b/scripts/install @@ -198,7 +198,7 @@ virtualenv "${final_path}/venv" pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns psycopg2-binary python-memcached phply # specific to YunoHost package: pip install django_sendmail_backend - # fix https://github.com/WeblateOrg/weblate/issues/2294 + # Fix ImportError: No module named backports pip install backports.csv ) diff --git a/scripts/remove b/scripts/remove index c377707..841b4ff 100755 --- a/scripts/remove +++ b/scripts/remove @@ -17,6 +17,12 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get "$app" domain) db_name=$(ynh_app_setting_get "$app" db_name) +#================================================= +# STOP WEBLATE'S SERVICE +#================================================= + +systemctl stop "uwsgi-app@$app.service" + #================================================= # REMOVE THE PostgreSQL DATABASE #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 35cda87..1065456 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -218,6 +218,8 @@ fi pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns psycopg2-binary python-memcached phply # specific to YunoHost package: pip install django_sendmail_backend + # Fix ImportError: No module named backports + pip install backports.csv ) #=================================================