From 20ba54c2b6a2c2f6d170f62d1695379219a10156 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 20 Jan 2022 09:09:20 +0100 Subject: [PATCH 1/3] Config file requires write access --- scripts/install | 2 +- scripts/restore | 3 +++ scripts/upgrade | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index fdabfeb..71d3b18 100755 --- a/scripts/install +++ b/scripts/install @@ -104,7 +104,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_add_config --template="../conf/config.xml.php" --destination="$final_path/config.xml.php" -chmod 400 "$final_path/config.xml.php" +chmod 660 "$final_path/config.xml.php" chown $app:$app "$final_path/config.xml.php" #================================================= diff --git a/scripts/restore b/scripts/restore index be19705..119c23e 100755 --- a/scripts/restore +++ b/scripts/restore @@ -66,6 +66,9 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +chmod 660 "$final_path/config.xml.php" +chown $app:$app "$final_path/config.xml.php" + #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 92aa0f9..2091e29 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -86,6 +86,9 @@ chmod 750 "$final_path" chmod -R o-rwx "$final_path" chown -R $app:www-data "$final_path" +chmod 660 "$final_path/config.xml.php" +chown $app:$app "$final_path/config.xml.php" + #================================================= # NGINX CONFIGURATION #================================================= From c4c0b38e90e6d04af7edfc92d8d80dad08a63183 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 20 Jan 2022 09:14:38 +0100 Subject: [PATCH 2/3] Update manifest.json --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 22bb0a9..d7ea623 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Content Management System", "fr": "Système de gestion de contenu" }, - "version": "4.4.2~ynh2", + "version": "4.4.2~ynh3", "url": "https://sitemagic.org/", "upstream": { "license": "FSFULLR", From 273deff85f214bc20205c10f506507ef16abda2e Mon Sep 17 00:00:00 2001 From: Yunohost-Bot <> Date: Thu, 20 Jan 2022 08:14:56 +0000 Subject: [PATCH 3/3] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2a39ee3..b8140e5 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in Sitemagic is a Content Management System. It's very unique in its approach to design. Sitemagic CMS is a comprehensive Content Management System that allows anyone to easily manage pages, files, menu, forms, and external modules such as maps, social media plugins, videos, and more. But there's also a ton of hidden features that helps you save time such as automatic mobile and search engine optimizations (SEO). -**Shipped version:** 4.4.2~ynh2 +**Shipped version:** 4.4.2~ynh3 diff --git a/README_fr.md b/README_fr.md index b74e7dd..eadf7f0 100644 --- a/README_fr.md +++ b/README_fr.md @@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour Sitemagic is a Content Management System. It's very unique in its approach to design. Sitemagic CMS is a comprehensive Content Management System that allows anyone to easily manage pages, files, menu, forms, and external modules such as maps, social media plugins, videos, and more. But there's also a ton of hidden features that helps you save time such as automatic mobile and search engine optimizations (SEO). -**Version incluse :** 4.4.2~ynh2 +**Version incluse :** 4.4.2~ynh3