1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
This commit is contained in:
ericgaspar 2021-06-08 08:56:15 +02:00
parent 6b801e9dff
commit b410246988
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 4 deletions

View file

@ -107,7 +107,13 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
#=================================================
ynh_script_progression --message="Configuring Kanboard..."
ynh_add_config --template="../conf/config.php" --destination="$final_path/config.php"
cp ../conf/config.php "$final_path/config.php"
ynh_replace_string --match_string="__DB_PWD__" --replace_string="$db_pwd" --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DB_NAME__" --replace_string=$db_name --target_file="$final_path/config.php"
ynh_replace_string --match_string="__ADMIN__" --replace_string=$admin --target_file="$final_path/config.php"
ynh_replace_string --match_string="__EMAIL__" --replace_string=$email --target_file="$final_path/config.php"
ynh_replace_string --match_string="__DOMAIN__" --replace_string=$domain --target_file="$final_path/config.php"
chmod 400 "$final_path/config.php"
chown $app "$final_path/config.php"

View file

@ -161,9 +161,6 @@ else
ynh_app_setting_set --app=$app --key=unprotected_uris --value="/jsonrpc.php"
fi
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$config_php"
#=================================================
# RELOAD NGINX
#=================================================