1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ffsync_ynh.git synced 2024-09-03 18:26:38 +02:00

improvments

This commit is contained in:
yalh76 2022-07-28 08:22:00 +02:00
parent f8c15b73df
commit bee68430ac
2 changed files with 7 additions and 7 deletions

View file

@ -23,13 +23,13 @@ install_sources() {
source "$final_path/local/bin/activate" source "$final_path/local/bin/activate"
set -o nounset set -o nounset
cd "$final_path" cd "$final_path"
pip install --upgrade pip ynh_exec_warn_less pip install --upgrade pip
pip install --upgrade pyramid_chameleon 'soupsieve<2.0' ynh_exec_warn_less pip install --upgrade pyramid_chameleon 'soupsieve<2.0'
CFLAGS="-Wno-error -Wno-error=format-security" \ ynh_exec_warn_less CFLAGS="-Wno-error -Wno-error=format-security" \
ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" \ ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" \
pip install --upgrade --requirement "$final_path/requirements.txt" pip install --upgrade --requirement "$final_path/requirements.txt"
python "$final_path/setup.py" develop ynh_exec_warn_less python "$final_path/setup.py" develop
touch "$final_path/local/COMPLETE" touch "$final_path/local/COMPLETE"
) )
@ -154,7 +154,7 @@ ynh_add_uwsgi_service () {
cp ../conf/uwsgi-app@override.service /etc/systemd/system/uwsgi-app@$app.service.d/override.conf cp ../conf/uwsgi-app@override.service /etc/systemd/system/uwsgi-app@$app.service.d/override.conf
systemctl daemon-reload systemctl daemon-reload
systemctl enable "uwsgi-app@$app.service" systemctl enable "uwsgi-app@$app.service" --quiet
# Add as a service # Add as a service
yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log" yunohost service add "uwsgi-app@$app" --log "/var/log/uwsgi/$app/$app.log"
@ -168,7 +168,7 @@ ynh_remove_uwsgi_service () {
if [ -e "$finaluwsgiini" ]; then if [ -e "$finaluwsgiini" ]; then
yunohost service remove "uwsgi-app@$app" yunohost service remove "uwsgi-app@$app"
systemctl stop "uwsgi-app@$app.service" systemctl stop "uwsgi-app@$app.service"
systemctl disable "uwsgi-app@$app.service" systemctl disable "uwsgi-app@$app.service" --quiet
ynh_secure_remove --file="$finaluwsgiini" ynh_secure_remove --file="$finaluwsgiini"
ynh_secure_remove --file="/var/log/uwsgi/$app" ynh_secure_remove --file="/var/log/uwsgi/$app"

View file

@ -17,7 +17,7 @@ ynh_script_progression --message="Loading installation settings..."
app=$YNH_APP_INSTANCE_NAME app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain) domain=$(ynh_app_setting_get --app=$app --key=domain)
path_url=$(ynh_normalize_url_path --path_url $(ynh_app_setting_get --app=$app --key=path)) path_url=$(ynh_app_setting_get --app=$app --key=path)
final_path=$(ynh_app_setting_get --app=$app --key=final_path) final_path=$(ynh_app_setting_get --app=$app --key=final_path)
db_name=$(ynh_app_setting_get --app=$app --key=db_name) db_name=$(ynh_app_setting_get --app=$app --key=db_name)
db_user=$app db_user=$app