1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00
This commit is contained in:
ericgaspar 2022-09-27 21:00:14 +02:00
parent 0cabf78579
commit 63d5f14cb4
2 changed files with 8 additions and 7 deletions

View file

@ -32,13 +32,13 @@ mysql-to-pg() {
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=3
#ynh_script_progression --message="Modifying a config file..." --weight=3
smtp_user_pwd=$(ynh_string_random --length=24)
url=https://$domain$path_url
db_pwd=$(psqlpwd)
#smtp_user_pwd=$(ynh_string_random --length=24)
#url=https://$domain$path_url
#db_pwd=$(psqlpwd)
ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json"
#ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json"
# Removinging MySQL database
ynh_mysql_remove_db --db_user=$db_user --db_name=$db_name

View file

@ -131,7 +131,7 @@ then
tmpdir="$(mktemp -d)"
# Backup the config file and local plugins in the temp dir
cp -a "$final_path/config/config.json" "$tmpdir/config.json"
#cp -a "$final_path/config/config.json" "$tmpdir/config.json"
cp -ar "$final_path/plugins" "$tmpdir/plugins"
# Remove the app directory securely
@ -144,7 +144,7 @@ then
fi
# Copy the admin saved settings and plugins from tmp directory to final path
cp -a "$tmpdir/config.json" "$final_path/config/config.json"
#cp -a "$tmpdir/config.json" "$final_path/config/config.json"
cp -ar --no-clobber "$tmpdir/plugins" "$final_path/"
# Remove the tmp directory securely
@ -184,6 +184,7 @@ ynh_script_progression --message="Modifying a config file..." --weight=3
smtp_user_pwd=$(ynh_string_random --length=24)
url=https://$domain$path_url
db_pwd=$(psqlpwd)
ynh_add_config --template="../conf/config.json" --destination="$final_path/config/config.json"