mirror of
https://github.com/YunoHost-Apps/backdrop_ynh.git
synced 2024-09-03 20:36:14 +02:00
Update install
This commit is contained in:
parent
ff262f2f68
commit
87a0c0dd1f
1 changed files with 7 additions and 11 deletions
|
@ -96,19 +96,15 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Configuring Backdrop..." --weight=1
|
ynh_script_progression --message="Configuring Backdrop..." --weight=1
|
||||||
|
|
||||||
salt=$(ynh_string_random --length=30)
|
cp ../conf/settings.example.php "$final_path/settings.php"
|
||||||
|
|
||||||
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"
|
||||||
|
|
||||||
# cp ../conf/settings.example.php "$final_path/settings.php"
|
# Recalculate and store the config file checksum into the app settings
|
||||||
|
ynh_store_file_checksum --file="$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"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
|
|
Loading…
Reference in a new issue