mirror of
https://github.com/YunoHost-Apps/baikal_ynh.git
synced 2024-09-03 18:16:11 +02:00
Update upgrade (#83)
This commit is contained in:
parent
9965ee252d
commit
c37081f598
1 changed files with 10 additions and 10 deletions
|
@ -124,7 +124,7 @@ then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=3
|
ynh_script_progression --message="Upgrading source files..." --weight=3
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --keep="Specific/ config/"
|
ynh_setup_source --dest_dir="$final_path" --keep="config/baikal.yaml"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
@ -162,16 +162,16 @@ ynh_add_nginx_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
|
||||||
# ynh_script_progression --message="Upgrading the configuration file..." --weight=2
|
ynh_script_progression --message="Upgrading the configuration file..." --weight=2
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
Loading…
Add table
Reference in a new issue