1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yellow_ynh.git synced 2024-09-03 20:36:12 +02:00

Fix upgrade content

This commit is contained in:
Éric Gaspar 2022-08-25 11:09:26 +02:00
parent 263dce9e26
commit fb303e2d63
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 14 additions and 12 deletions

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/datenstrom/yellow/archive/b19d2f92e3453ca4d0c283c92b4a22066ce40b63.zip
SOURCE_SUM=ddd9c56f35fbbfe7e5e70ec94172ec7459aca8d624b1794c872705091743192d
SOURCE_URL=https://github.com/datenstrom/yellow/archive/f9f60b8a949ad0820e032f84fde3faf873e0b2c6.zip
SOURCE_SUM=a6eaa696ecc9cc9c8ca7b6584ee49e586e268d5c324822e05502ea2f4b6a9576
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Système de gestion de contenu (CMS) for simple website",
"fr": "Content management system (CMS) pour un site simple"
},
"version": "0.8.20~ynh2",
"version": "0.8.20~ynh3",
"url": "https://datenstrom.se/yellow/",
"upstream": {
"license": "GPL-2.0-only",
@ -20,7 +20,7 @@
"name": "eric_G"
},
"requirements": {
"yunohost": ">> 4.3.0"
"yunohost": ">> 11.0.9"
},
"multi_instance": true,
"services": [

View file

@ -33,16 +33,11 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=2
test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "
#=================================================
# STANDARD RESTORATION STEPS
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# RECREATE THE DEDICATED USER
#=================================================
@ -77,6 +72,13 @@ ynh_script_progression --message="Reconfiguring PHP-FPM..." --weight=6
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -76,7 +76,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=2
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
ynh_setup_source --dest_dir="$final_path" --keep="content"
fi
chmod 750 "$final_path"