mirror of
https://github.com/YunoHost-Apps/netdata_ynh.git
synced 2024-09-03 19:46:33 +02:00
Fix upgrade edge case
This commit is contained in:
parent
367693c98d
commit
736009bb82
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,13 @@ if [ -z "$final_path" ]; then
|
|||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
fi
|
||||
|
||||
# If final_path wrongly refers to /var/www
|
||||
# see http://tldp.org/LDP/abs/html/comparison-ops.html for syntax reference
|
||||
if [[ $final_path == /var/www* ]]; then
|
||||
final_path=/opt/$app
|
||||
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue