diff --git a/conf/app.src b/conf/app.src index cb7108a..a69441a 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/backdrop/backdrop/releases/download/1.19.0/backdrop.zip -SOURCE_SUM=a19ff45d576ad60792b22061b28dfda4a85980aaa7ee5dcd738513894e55192d +SOURCE_URL=https://github.com/backdrop/backdrop/releases/download/1.19.1/backdrop.zip +SOURCE_SUM=356ccce2e112126da4f271e236ce185582b3bb76c7cca7688c0085399baa3a94 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index e69de29..90c6a2e 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -0,0 +1,3 @@ +#### upgrade + +Backdrop CMS includes an update utility to handle any necessary changes to the database schema or configuration. [See instructions](https://backdropcms.org/upgrade) diff --git a/doc/DISCLAIMER_fr.md b/doc/DISCLAIMER_fr.md new file mode 100644 index 0000000..38c7c3a --- /dev/null +++ b/doc/DISCLAIMER_fr.md @@ -0,0 +1,3 @@ +## Configuration + +Backdrop CMS inclus un utilitaire de mise à jour pour gérer toutes les modifications nécessaires à configuration et base de données. [Voir les instructions](https://backdropcms.org/upgrade) diff --git a/doc/screenshots/Hello_world.png b/doc/screenshots/Hello_world.png new file mode 100644 index 0000000..4cfca84 Binary files /dev/null and b/doc/screenshots/Hello_world.png differ diff --git a/manifest.json b/manifest.json index 3589fb0..b9a2456 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Easy-to-use CMS for building professional websites", "fr": "CMS facile à utiliser pour créer des sites Web professionnels" }, - "version": "1.19.0~ynh1", + "version": "1.19.1~ynh1", "url": "https://backdropcms.org/", "upstream": { "license": "GPL-2.0", diff --git a/scripts/install b/scripts/install index 50cb573..84dcdea 100644 --- a/scripts/install +++ b/scripts/install @@ -72,6 +72,11 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$final_path" +# Set permissions to app files +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # NGINX CONFIGURATION #================================================= @@ -106,15 +111,6 @@ ynh_replace_string --match_string="__SALT__" --replace_string="$(ynh_string_rand # Recalculate and store the config file checksum into the app settings ynh_store_file_checksum --file="$final_path/settings.php" -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Set permissions to app files -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # SETUP SSOWAT #================================================= diff --git a/scripts/restore b/scripts/restore index 2b7ac1b..5aee976 100644 --- a/scripts/restore +++ b/scripts/restore @@ -61,10 +61,6 @@ ynh_script_progression --message="Restoring Backdrop main directory..." --weight ynh_restore_file --origin_path="$final_path" -#================================================= -# RESTORE USER RIGHTS -#================================================= - # Set permissions to app files chmod 750 "$final_path" chmod -R o-rwx "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 8f8264f..b4d6b9f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -89,6 +89,11 @@ then ynh_setup_source --dest_dir="$final_path" --keep="$final_path/settings.php" fi +# Set permissions to app files +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chown -R $app:www-data "$final_path" + #================================================= # NGINX CONFIGURATION #================================================= @@ -105,17 +110,6 @@ ynh_script_progression --message="Upgrading PHP-FPM configuration..." --weight=2 # Create a dedicated PHP-FPM config ynh_add_fpm_config --package="$extra_php_dependencies" -#================================================= -# GENERIC FINALIZATION -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Set permissions to app files -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # GENERIC FINALIZATION #=================================================