mirror of
https://github.com/YunoHost-Apps/weblate_ynh.git
synced 2024-10-01 13:35:04 +02:00
fix uwsgi
This commit is contained in:
parent
de34e2026a
commit
702b976f4f
2 changed files with 2 additions and 0 deletions
|
@ -118,6 +118,7 @@ set_forge_variables
|
||||||
ynh_config_add --template="settings.py" --destination="$settings"
|
ynh_config_add --template="settings.py" --destination="$settings"
|
||||||
ynh_config_add --template="celery-weblate" --destination="$install_dir/celery-weblate"
|
ynh_config_add --template="celery-weblate" --destination="$install_dir/celery-weblate"
|
||||||
ynh_config_add --template="uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini"
|
ynh_config_add --template="uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini"
|
||||||
|
chmod 600 "/etc/uwsgi/apps-available/$app.ini"
|
||||||
|
|
||||||
touch "$install_dir/local_settings.py"
|
touch "$install_dir/local_settings.py"
|
||||||
ln -sf "$install_dir/local_settings.py" "$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/local_settings.py"
|
ln -sf "$install_dir/local_settings.py" "$install_dir/venv/lib/$weblate_pypath/site-packages/weblate/local_settings.py"
|
||||||
|
|
|
@ -79,6 +79,7 @@ fi
|
||||||
ynh_script_progression "Updating configuration..."
|
ynh_script_progression "Updating configuration..."
|
||||||
|
|
||||||
ynh_config_add --template="uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini"
|
ynh_config_add --template="uwsgi.ini" --destination="/etc/uwsgi/apps-available/$app.ini"
|
||||||
|
chmod 600 "/etc/uwsgi/apps-available/$app.ini"
|
||||||
|
|
||||||
ynh_config_add --template="celery-weblate" --destination="$install_dir/celery-weblate"
|
ynh_config_add --template="celery-weblate" --destination="$install_dir/celery-weblate"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue