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

Bullseye (#27)

* Auto-update README

* Fix upgrade content

* Auto-update README

* Update upgrade

Co-authored-by: yunohost-bot <yunohost@yunohost.org>
This commit is contained in:
Éric Gaspar 2022-08-25 13:49:55 +02:00 committed by GitHub
parent 263dce9e26
commit 8afaebfe64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 18 additions and 14 deletions

View file

@ -17,7 +17,8 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Système de gestion de contenu (CMS) for simple website Système de gestion de contenu (CMS) for simple website
**Shipped version:** 0.8.20~ynh2 **Shipped version:** 0.8.20~ynh3
**Demo:** https://datenstrom.se/yellow/demo/ **Demo:** https://datenstrom.se/yellow/demo/

View file

@ -17,7 +17,8 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Content management system (CMS) pour un site simple Content management system (CMS) pour un site simple
**Version incluse :** 0.8.20~ynh2 **Version incluse :** 0.8.20~ynh3
**Démo :** https://datenstrom.se/yellow/demo/ **Démo :** https://datenstrom.se/yellow/demo/

View file

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

View file

@ -6,7 +6,7 @@
"en": "Système de gestion de contenu (CMS) for simple website", "en": "Système de gestion de contenu (CMS) for simple website",
"fr": "Content management system (CMS) pour un site simple" "fr": "Content management system (CMS) pour un site simple"
}, },
"version": "0.8.20~ynh2", "version": "0.8.20~ynh3",
"url": "https://datenstrom.se/yellow/", "url": "https://datenstrom.se/yellow/",
"upstream": { "upstream": {
"license": "GPL-2.0-only", "license": "GPL-2.0-only",
@ -20,7 +20,7 @@
"name": "eric_G" "name": "eric_G"
}, },
"requirements": { "requirements": {
"yunohost": ">> 4.3.0" "yunohost": ">> 11.0.9"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "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 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 # STANDARD RESTORATION STEPS
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
#================================================= #=================================================
# RECREATE THE DEDICATED USER # 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" 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 # GENERIC FINALIZATION
#================================================= #=================================================

View file

@ -76,7 +76,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=2 ynh_script_progression --message="Upgrading source files..." --weight=2
# 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 --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path" --keep="content media"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"