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

Merge pull request #8 from YunoHost-Apps/testing

0.3.2
This commit is contained in:
Melchisedech 2022-03-02 13:38:35 +01:00 committed by GitHub
commit e770008140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 25 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
With Digiwords, you can create interactive wordclouds. With Digiwords, you can create interactive wordclouds.
**Shipped version:** 0.3.0~ynh2 **Shipped version:** 0.3.2~ynh1
**Demo:** https://ladigitale.dev/digiwords/#/ **Demo:** https://ladigitale.dev/digiwords/#/

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Digiwords permet de créer des nuages de mots interactifs.) Digiwords permet de créer des nuages de mots interactifs.)
**Version incluse :** 0.3.0~ynh2 **Version incluse :** 0.3.2~ynh1
**Démo :** https://ladigitale.dev/digiwords/#/ **Démo :** https://ladigitale.dev/digiwords/#/

View file

@ -20,7 +20,7 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
upgrade=1 from_commit=9c768105e749fb961d6e15f1e020e44cc35fe81c # upgrade=1 from_commit=9c768105e749fb961d6e15f1e020e44cc35fe81c
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
port_already_use=0 port_already_use=0
@ -28,7 +28,7 @@
;;; Options ;;; Options
Email= Email=
Notification=none Notification=none
;;; Upgrade options #;;; Upgrade options
; commit=9c768105e749fb961d6e15f1e020e44cc35fe81c # ; commit=9c768105e749fb961d6e15f1e020e44cc35fe81c
name=Fix of the scripts 20220221. # ;name=Fix of the scripts 20220221.
manifest_arg=domain=DOMAIN&path=PATH&language=fr&is_public=1& # ;manifest_arg=domain=DOMAIN&path=PATH&language=fr&is_public=1&

View file

@ -1,6 +1,6 @@
SOURCE_URL=https://kdrive.ladigitale.dev/app/share/139248/9f347a6f-4731-485a-9c9b-b653b250663e/7641/download SOURCE_URL=https://github.com/YunoHost-Apps/digiwords_ynh/files/8153168/digiwords-v0.3.2.zip
SOURCE_SUM=d337d63fdc1a151732e1bb8159615e71 SOURCE_SUM=2e97f6fcb29272c79a12b30c216177c6371efec053a401e4915db7ec46e557dc
SOURCE_SUM_PRG=md5sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip SOURCE_FORMAT=zip
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
#SOURCE_FILENAME= #SOURCE_FILENAME=

View file

@ -6,7 +6,7 @@
"en": "With Digiwords, you can create interactive wordclouds.", "en": "With Digiwords, you can create interactive wordclouds.",
"fr": "Digiwords permet de créer des nuages de mots interactifs.)" "fr": "Digiwords permet de créer des nuages de mots interactifs.)"
}, },
"version": "0.3.0~ynh2", "version": "0.3.2~ynh1",
"url": "https://ladigitale.dev/", "url": "https://ladigitale.dev/",
"upstream": { "upstream": {
"license": "GPL-3.0-only", "license": "GPL-3.0-only",

View file

@ -110,23 +110,30 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then then
ynh_script_progression --message="Upgrading source files..." --time --weight=1 ynh_script_progression --message="Upgrading source files..." --time --weight=1
# Create a temporary directory # Test because file doesnt exist at first install. It is created at first page opening.
tmpdir="$(mktemp -d)" if test -f "$final_path/inc/digiwords.db"
then
# Create a temporary directory
tmpdir="$(mktemp -d)"
# Backup the inc/digiwords.db file to the temp dir # Backup the inc/digiwords.db file to the temp dir
cp -ar "$final_path/inc/digiwords.db" "$tmpdir/digiwords.db" cp -ar "$final_path/inc/digiwords.db" "$tmpdir/digiwords.db"
# Remove the app directory securely # Remove the app directory securely
ynh_secure_remove --file=$final_path ynh_secure_remove --file=$final_path
# 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"
# Copy digiwords.db back to the final_path # Copy digiwords.db back to the final_path
cp -ar "$tmpdir/digiwords.db" "$final_path/inc/digiwords.db" cp -ar "$tmpdir/digiwords.db" "$final_path/inc/digiwords.db"
# Remove the tmp directory securely # Remove the tmp directory securely
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
else
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
fi
fi fi
# FIXME: this should be managed by the core in the future # FIXME: this should be managed by the core in the future