mirror of
https://github.com/YunoHost-Apps/backdrop_ynh.git
synced 2024-09-03 20:36:14 +02:00
Cleaning up
This commit is contained in:
parent
b30b079ec0
commit
173efe6162
6 changed files with 13 additions and 14 deletions
|
@ -31,7 +31,6 @@ Backdrop CMS includes an update utility to handle any necessary changes to the d
|
|||
## Documentation
|
||||
|
||||
* Official documentation: https://backdropcms.org/user-guide
|
||||
* YunoHost documentation: https://yunohost.org/#/app_backdrop
|
||||
|
||||
## YunoHost specific features
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ Backdrop CMS is a simple, lightweight, and easy-to-use Content Management System
|
|||
|
||||
## Démo
|
||||
|
||||
* [Démo officielle](https://demo.yunohost.org/ttrss/)
|
||||
* [Démo officielle](https://backdropcms.org/demo)
|
||||
|
||||
## Configuration
|
||||
|
||||
|
@ -29,7 +29,6 @@ Backdrop CMS inclus un utilitaire de mise à jour pour gérer toutes les modific
|
|||
## Documentation
|
||||
|
||||
* Documentation officielle : https://backdropcms.org/user-guide
|
||||
* Documentation YunoHost : https://yunohost.org/#/app_backdrop_fr
|
||||
|
||||
## Caractéristiques spécifiques YunoHost
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@
|
|||
* advanced database documentation at
|
||||
* https://api.backdropcms.org/database-configuration
|
||||
*/
|
||||
$database = 'mysql://__DBNAME__:__DBPWD__@localhost/__DBNAME__';
|
||||
$database_prefix = '__DBNAME___';
|
||||
$database = 'mysql://__DB_NAME__:__DB_PWD__@localhost/__DB_NAME__';
|
||||
$database_prefix = '__DB_NAME___';
|
||||
|
||||
/**
|
||||
* Site configuration files location.
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"email": ""
|
||||
},
|
||||
"requirements": {
|
||||
"yunohost": ">= 4.0.0"
|
||||
"yunohost": ">= 4.1.7"
|
||||
},
|
||||
"multi_instance": true,
|
||||
"services": [
|
||||
|
|
|
@ -43,7 +43,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
|
|||
|
||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||
ynh_app_setting_set --app=$app --key=is_public --value=$is_public
|
||||
|
||||
#=================================================
|
||||
# STANDARD MODIFICATIONS
|
||||
|
@ -97,14 +96,17 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Configuring Backdrop..." --weight=1
|
||||
|
||||
cp ../conf/settings.example.php "$final_path/settings.php"
|
||||
salt=$(ynh_string_random --length=30)
|
||||
|
||||
# Change variables in ttrss configuration
|
||||
ynh_replace_string --match_string="__DBNAME__" --replace_string="$db_name" --target_file="$final_path/settings.php"
|
||||
ynh_replace_string --match_string="__DBPWD__" --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"
|
||||
#ynh_replace_string --match_string="__DOMAIN__" --replace_string="https://$domain$path_url" --target_file="$final_path/config.php"
|
||||
# cp ../conf/settings.example.php "$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"
|
||||
# #ynh_replace_string --match_string="__DOMAIN__" --replace_string="https://$domain$path_url" --target_file="$final_path/config.php"
|
||||
|
||||
ynh_add_config --template="../conf/settings.example.php" --destination="$final_path/settings.php"
|
||||
# Recalculate and store the config file checksum into the app settings
|
||||
ynh_store_file_checksum --file="$final_path/settings.php"
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
|
||||
db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
||||
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||
|
|
Loading…
Reference in a new issue