1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

Merge branch 'master' into testing

This commit is contained in:
Jean-Baptiste Holcroft 2018-10-15 22:49:49 +02:00
commit d9f1725f5f
4 changed files with 12 additions and 4 deletions

View file

@ -8,9 +8,9 @@ ynh_check_global_uwsgi_config () {
cp ../conf/uwsgi-app@.service /etc/systemd/system/uwsgi-app@.service cp ../conf/uwsgi-app@.service /etc/systemd/system/uwsgi-app@.service
# make sure the folder for sockets exists and set authorizations # make sure the folder for sockets exists and set authorizations
mkdir -p /var/run/uwsgi/ # make sure it exists on every startup
chown root:www-data /var/run/uwsgi/ echo "d /var/run/uwsgi 0775 root www-data" > /usr/lib/tmpfiles.d/uwsgi.conf
chmod -R 775 /var/run/uwsgi/ systemd-tmpfiles --create
# make sure the folder for logs exists and set authorizations # make sure the folder for logs exists and set authorizations
mkdir -p /var/log/uwsgi/app/ mkdir -p /var/log/uwsgi/app/

View file

@ -198,7 +198,7 @@ virtualenv "${final_path}/venv"
pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns psycopg2-binary python-memcached phply pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns psycopg2-binary python-memcached phply
# specific to YunoHost package: # specific to YunoHost package:
pip install django_sendmail_backend pip install django_sendmail_backend
# fix https://github.com/WeblateOrg/weblate/issues/2294 # Fix ImportError: No module named backports
pip install backports.csv pip install backports.csv
) )

View file

@ -17,6 +17,12 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get "$app" domain) domain=$(ynh_app_setting_get "$app" domain)
db_name=$(ynh_app_setting_get "$app" db_name) db_name=$(ynh_app_setting_get "$app" db_name)
#=================================================
# STOP WEBLATE'S SERVICE
#=================================================
systemctl stop "uwsgi-app@$app.service"
#================================================= #=================================================
# REMOVE THE PostgreSQL DATABASE # REMOVE THE PostgreSQL DATABASE
#================================================= #=================================================

View file

@ -218,6 +218,8 @@ fi
pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns psycopg2-binary python-memcached phply pip install pytz python-bidi PyYaML Babel pyuca pylibravatar pydns psycopg2-binary python-memcached phply
# specific to YunoHost package: # specific to YunoHost package:
pip install django_sendmail_backend pip install django_sendmail_backend
# Fix ImportError: No module named backports
pip install backports.csv
) )
#================================================= #=================================================