mirror of
https://github.com/YunoHost-Apps/backdrop_ynh.git
synced 2024-09-03 20:36:14 +02:00
Fix
This commit is contained in:
parent
07bfd24e0c
commit
b98f7e5d27
6 changed files with 20 additions and 19 deletions
|
@ -47,7 +47,7 @@ Backdrop CMS includes an update utility to handle any necessary changes to the d
|
||||||
|
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/ttrss_ynh/issues
|
* Report a bug: https://github.com/YunoHost-Apps/backdrop_ynh/issues
|
||||||
* Backdrop website: https://backdropcms.org/
|
* Backdrop website: https://backdropcms.org/
|
||||||
* Backdrop repository: https://github.com/backdrop/backdrop
|
* Backdrop repository: https://github.com/backdrop/backdrop
|
||||||
* YunoHost website: https://yunohost.org/
|
* YunoHost website: https://yunohost.org/
|
||||||
|
|
0
doc/DISCLAIMER.md
Normal file
0
doc/DISCLAIMER.md
Normal file
|
@ -8,6 +8,14 @@
|
||||||
},
|
},
|
||||||
"version": "1.19.0~ynh1",
|
"version": "1.19.0~ynh1",
|
||||||
"url": "https://backdropcms.org/",
|
"url": "https://backdropcms.org/",
|
||||||
|
"upstream": {
|
||||||
|
"license": "GPL-2.0",
|
||||||
|
"website": "https://backdropcms.org/",
|
||||||
|
"demo": "https://backdropcms.org/demo",
|
||||||
|
"admindoc": "https://yunohost.org/packaging_apps",
|
||||||
|
"userdoc": "https://backdropcms.org/user-guide",
|
||||||
|
"code": "https://github.com/backdrop/backdrop"
|
||||||
|
},
|
||||||
"license": "GPL-2.0",
|
"license": "GPL-2.0",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
"name": "eric_G",
|
"name": "eric_G",
|
||||||
|
|
|
@ -96,24 +96,17 @@ 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
|
||||||
|
|
||||||
cp ../conf/settings.example.php "$final_path/settings.php"
|
salt=$(ynh_string_random --length=30)
|
||||||
|
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"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
chown -R $app:www-data $final_path/files
|
chmod -R o-rwx "$final_path"
|
||||||
chmod -R 770 $final_path/files
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SSOWAT
|
# SETUP SSOWAT
|
||||||
|
|
|
@ -66,9 +66,9 @@ ynh_restore_file --origin_path="$final_path"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
chown -R $app:www-data $final_path/files
|
chmod -R o-rwx "$final_path"
|
||||||
chmod -R 770 $final_path/files
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE PHP-FPM CONFIGURATION
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
|
|
@ -112,9 +112,9 @@ ynh_add_fpm_config --package="$extra_php_dependencies"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Set permissions to app files
|
# Set permissions to app files
|
||||||
chown -R root: $final_path
|
chmod 750 "$final_path"
|
||||||
chown -R $app:www-data $final_path/files
|
chmod -R o-rwx "$final_path"
|
||||||
chmod -R 770 $final_path/files
|
chown -R $app:www-data "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Reference in a new issue