From 80f0d44b7ea85eddcb30785a9c53c26c6c47c000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Mon, 15 Aug 2022 08:15:56 +0200 Subject: [PATCH] Bullseye (#100) * Auto-update README * PHP shouldn't allow `array(foobar)` to work if foobar is undefined... * Upgrade to bullseye * Auto-update README * Auto-update README * Fix Co-authored-by: yunohost-bot Co-authored-by: Alexandre Aubin --- README.md | 2 +- README_fr.md | 2 +- conf/config.local.php | 2 +- manifest.json | 4 ++-- scripts/_common.sh | 4 ++-- scripts/install | 4 ++++ scripts/restore | 4 ++++ 7 files changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index b6e4ce2..2f88512 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Jirafeau offers the possibility to host and share your files with ease. Choose a file, Jirafeau will provide you with a link with many options. It is possible to protect your links with a password as well as to choose how long the file will be kept on the server. The file and the link will self-destruct after this time. Downloads of transmitted files can be limited to a certain date, and each file can self-destruct after the first download. Jirafeau allows you to configure maximum retention times and maximum size per file. Encryption is available as an option. -**Shipped version:** 4.4.0~ynh2 +**Shipped version:** 4.4.0~ynh3 **Demo:** https://demo.yunohost.org/jirafeau/ diff --git a/README_fr.md b/README_fr.md index 75cc774..ff8f735 100644 --- a/README_fr.md +++ b/README_fr.md @@ -18,7 +18,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Jirafeau offre la possibilité d'héberger et de partager vos fichiers, le tout en toute simplicité. Choisissez un fichier, Jirafeau vous fournira un lien avec beaucoup d'options. Il est possible de protéger vos liens avec mot de passe ainsi que de choisir la durée de rétention du fichier sur le serveur. Le fichier et le lien s'autodétruiront passé ce délai. Les téléchargements des fichiers transmis peuvent être limités à une certaine date, et chaque fichier peut s'autodétruire après le premier téléchargement. Jirafeau permet de configurer les temps maximum de rétention ainsi que la taille maximale par fichier. Le chiffrement est disponible en option. -**Version incluse :** 4.4.0~ynh2 +**Version incluse :** 4.4.0~ynh3 **Démo :** https://demo.yunohost.org/jirafeau/ diff --git a/conf/config.local.php b/conf/config.local.php index 7259a27..e413d82 100644 --- a/conf/config.local.php +++ b/conf/config.local.php @@ -74,7 +74,7 @@ $cfg['link_name_length'] = 8; * $cfg['upload_password'] = array('psw1'); // One password * $cfg['upload_password'] = array('psw1', 'psw2'); // Two passwords */ -$cfg['upload_password'] = array(__UPLOAD_PASSWORD__); +$cfg['upload_password'] = array('__UPLOAD_PASSWORD__'); /* List of IP allowed to upload a file. * If the list is empty, then there is no upload restriction based on IP. diff --git a/manifest.json b/manifest.json index 3c67609..2087a26 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Upload a file in a simple way and give a unique link to it", "fr": "Hébergez simplement un fichier et partagez-le avec un lien unique" }, - "version": "4.4.0~ynh2", + "version": "4.4.0~ynh3", "url": "https://gitlab.com/mojo42/Jirafeau", "upstream": { "license": "AGPL-3.0-only", @@ -21,7 +21,7 @@ "email": "" }, "requirements": { - "yunohost": ">= 4.3.0" + "yunohost": ">= 11.0.9" }, "multi_instance": false, "services": [ diff --git a/scripts/_common.sh b/scripts/_common.sh index aae521c..eb3783f 100755 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,10 +4,10 @@ # COMMON VARIABLES #================================================= -YNH_PHP_VERSION="7.3" +YNH_PHP_VERSION="8.0" # dependencies used by the app -pkg_dependencies="" +pkg_dependencies="php$YNH_PHP_VERSION-fpm" #================================================= # PERSONAL HELPERS diff --git a/scripts/install b/scripts/install index 151a039..efe088b 100755 --- a/scripts/install +++ b/scripts/install @@ -13,6 +13,10 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= +ynh_clean_setup () { + ### Remove this function if there's nothing to clean before calling the remove script. + true +} # Exit if an error occurs during the execution of the script ynh_abort_if_errors diff --git a/scripts/restore b/scripts/restore index 90cc892..c21f1a7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -14,6 +14,10 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= +ynh_clean_setup () { + #### Remove this function if there's nothing to clean before calling the remove script. + true +} # Exit if an error occurs during the execution of the script ynh_abort_if_errors