1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/baikal_ynh.git synced 2024-09-03 18:16:11 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2022-04-03 13:57:39 +02:00
parent eb319bc067
commit b993061e34
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -24,6 +24,7 @@ db_user=$db_name
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
phpversion=$YNH_PHP_VERSION phpversion=$YNH_PHP_VERSION
password_hash=$(ynh_app_setting_get --app=$app --key=password_hash) password_hash=$(ynh_app_setting_get --app=$app --key=password_hash)
deskey=$(ynh_app_setting_get --app=$app --key=encrypt_key)
#================================================= #=================================================
# CHECK VERSION # CHECK VERSION
@ -129,29 +130,25 @@ ynh_add_fpm_config
# UPGRADE BAIKAL # UPGRADE BAIKAL
#================================================= #=================================================
# if [ "$upgrade_type" == "UPGRADE_APP" ] if [ "$upgrade_type" == "UPGRADE_APP" ]
# then then
# #================================================= #=================================================
# # UPGRADE BAIKAL CONFIGURATION # UPGRADE BAIKAL CONFIGURATION
# #================================================= #=================================================
# ynh_script_progression --message="Upgrading the configuration file..." --weight=2 ynh_script_progression --message="Upgrading the configuration file..." --weight=2
# if [ -z "$password_hash" ]; then if [ -z "$password_hash" ]; then
# password=$(ynh_app_setting_get --app=$app --key=password) password=$(ynh_app_setting_get --app=$app --key=password)
# password_hash=$(echo -n admin:BaikalDAV:$password | md5sum | cut -d ' ' -f 1) password_hash=$(echo -n admin:BaikalDAV:$password | md5sum | cut -d ' ' -f 1)
# ynh_app_setting_set --app=$app --key=password_hash --value=$password_hash ynh_app_setting_set --app=$app --key=password_hash --value=$password_hash
# fi fi
# bk_conf="${final_path}/config/baikal.yaml" timezone=$(cat /etc/timezone)
# timezone=$(cat /etc/timezone) path=${path_url%/}
# path=${path_url%/} ynh_add_config --template="../conf/baikal.yaml" --destination="$final_path/config/baikal.yaml"
# deskey=$(ynh_app_setting_get --app=$app --key=encrypt_key) chown $app: "$final_path/config/baikal.yaml"
# ynh_app_setting_set --app=$app --key=encrypt_key --value="$deskey" chmod 640 "$final_path/config/baikal.yaml"
fi
# ynh_add_config --template="../conf/baikal.yaml" --destination="$final_path/config/baikal.yaml"
# chown $app: "$final_path/config/baikal.yaml"
# chmod 640 "$final_path/config/baikal.yaml"
# fi
#================================================= #=================================================
# RELOAD NGINX # RELOAD NGINX