mirror of
https://github.com/YunoHost-Apps/backdrop_ynh.git
synced 2024-09-03 20:36:14 +02:00
commit
2adea59b89
3 changed files with 8 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue