1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

try repair errors

This commit is contained in:
rodinux 2022-09-08 11:38:40 +02:00
parent 8350aea52f
commit 6abd376d4d
2 changed files with 5 additions and 15 deletions

View file

@ -16,7 +16,6 @@
setup_public=1 setup_public=1
upgrade=1 upgrade=1
upgrade=1 from_commit=7205455e0a806a49c48c6d2f005d80d1b74a3355 upgrade=1 from_commit=7205455e0a806a49c48c6d2f005d80d1b74a3355
upgrade=1 from_commit=04e1730ff642a2e48dfb533b2136fe90f9eaf133
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
change_url=1 change_url=1
@ -27,6 +26,3 @@ Notification=none
; commit=7205455e0a806a49c48c6d2f005d80d1b74a3355 ; commit=7205455e0a806a49c48c6d2f005d80d1b74a3355
name=Previous version name=Previous version
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666& manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&
; commit=04e1730ff642a2e48dfb533b2136fe90f9eaf133
name=Version 1.0.6~ynh1
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&language=fr&is_public=1&password=pass&port=666&

View file

@ -97,7 +97,7 @@ if ynh_compare_current_package_version --comparison lt --version 1.1.0~ynh1
then then
ynh_script_progression --message="Upgrading to 1.1.0" --weight=5 ynh_script_progression --message="Upgrading to 1.1.0" --weight=5
# Download, check integrity, uncompress and patch the source from 0.9.8.src # Download, check integrity, uncompress and patch the source from 0.9.8.src
ynh_setup_source --keep="config.local.php" --dest_dir="$final_path" --source_id="1.1.0" ynh_setup_source --keep="config.local.php" --source_id="1.1.0"
# Set permissions on app files # Set permissions on app files
ynh_system_user_create --username=$app ynh_system_user_create --username=$app
ynh_add_nginx_config ynh_add_nginx_config
@ -122,20 +122,14 @@ then
chown -R $app:$app $final_path chown -R $app:$app $final_path
chmod 755 $final_path chmod 755 $final_path
# Temporarily enable visitors for curl if needed
visitors_enabled=$(ynh_permission_has_user "main" "visitors" && echo yes || echo no)
if [[ $visitors_enabled == "no" ]]; then
ynh_permission_update --permission "main" --add "visitors"
fi
# Finalize the upgrade # Finalize the upgrade
ynh_local_curl "/index.php" ynh_local_curl "/index.php"
sleep 5 sleep 5
ynh_local_curl "/index.php" ynh_local_curl "/index.php"
if [[ $visitors_enabled == "no" ]]; then # if [[ $visitors_enabled == "no" ]]; then
ynh_permission_update --permission "main" --remove "visitors" # ynh_permission_update --permission "main" --remove "visitors"
fi # fi
fi fi
#================================================= #=================================================
@ -155,7 +149,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=5 ynh_script_progression --message="Upgrading source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --keep="config.local.user.php" --dest_dir="$final_path" ynh_setup_source --keep="config.local.user.php"
fi fi
#================================================= #=================================================