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:
parent
42c627c7e9
commit
f605319d88
1 changed files with 17 additions and 17 deletions
|
@ -119,25 +119,25 @@ ynh_add_fpm_config
|
||||||
|
|
||||||
# We keep this to allow upgrade the config file in case it needs to be changed.
|
# We keep this to allow upgrade the config file in case it needs to be changed.
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
# 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"
|
ynh_add_config --template="../conf/baikal.yaml" --destination="$final_path/config/baikal.yaml"
|
||||||
# chown $app: "$final_path/config/baikal.yaml"
|
chown $app: "$final_path/config/baikal.yaml"
|
||||||
# chmod 640 "$final_path/config/baikal.yaml"
|
chmod 640 "$final_path/config/baikal.yaml"
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RELOAD NGINX
|
# RELOAD NGINX
|
||||||
|
|
Loading…
Add table
Reference in a new issue