From 6c3ae7904b5312db813276460d5063f196c4d45b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 12 Aug 2021 21:08:25 +0200 Subject: [PATCH] 1.19.3 --- conf/app.src | 4 ++-- manifest.json | 2 +- scripts/install | 13 +++++-------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/conf/app.src b/conf/app.src index e74ab71..23d2322 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/backdrop/backdrop/releases/download/1.19.2/backdrop.zip -SOURCE_SUM=ce218a82e4d311174e9b5fcf3b84ef200e251507b45709db6a29ff2457c6a064 +SOURCE_URL=https://github.com/backdrop/backdrop/releases/download/1.19.3/backdrop.zip +SOURCE_SUM=bc48494a699ba1a54018165ad46bdd48faa815e87df4ce052a43e8eb1ab23262 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index ba25c09..a37a143 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.2~ynh1", + "version": "1.19.3~ynh1", "url": "https://backdropcms.org/", "upstream": { "license": "GPL-2.0", diff --git a/scripts/install b/scripts/install index 5b75f9d..ac43060 100644 --- a/scripts/install +++ b/scripts/install @@ -101,15 +101,12 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= ynh_script_progression --message="Configuring $app..." --weight=1 -cp ../conf/settings.example.php "$final_path/settings.php" +salt="$(ynh_string_random --length=30)" +dir="__DIR__" +ynh_add_config --template="../conf/settings.example.php" --destination="$final_path/settings.php" -# Change variables in ttrss configuration -ynh_replace_string --match_string="__DB_NAME__" --replace_string="$db_name" --target_file="$final_path/settings.php" -ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/settings.php" -ynh_replace_string --match_string="__SALT__" --replace_string="$(ynh_string_random --length=30)" --target_file="$final_path/settings.php" - -# Recalculate and store the config file checksum into the app settings -ynh_store_file_checksum --file="$final_path/settings.php" +chmod 400 "$final_path/settings.php" +chown $app:$app "$final_path/settings.php" #================================================= # SETUP SSOWAT