mirror of
https://github.com/YunoHost-Apps/hotspot_ynh.git
synced 2024-09-03 19:25:53 +02:00
manage upgrade from 29 Jan 2019
mv: cannot move '/etc/php/7.0/fpm/pool.d/wifiadmin.conf' to '/etc/php//fpm/pool.d/hotspot.conf': No such file or directory
This commit is contained in:
parent
60d5a911fb
commit
d5d9fcbcb9
1 changed files with 9 additions and 3 deletions
|
@ -35,6 +35,11 @@ upgrade_type=$(ynh_check_app_version_changed)
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Ensuring downward compatibility..."
|
ynh_script_progression --message="Ensuring downward compatibility..."
|
||||||
|
|
||||||
|
if [ -z $phpversion ]; then
|
||||||
|
phpversion=7.0
|
||||||
|
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
|
||||||
|
fi
|
||||||
|
|
||||||
# If final_path doesn't exist, create it
|
# If final_path doesn't exist, create it
|
||||||
if [ -z "$final_path" ]; then
|
if [ -z "$final_path" ]; then
|
||||||
final_path=/var/www/$app
|
final_path=/var/www/$app
|
||||||
|
@ -50,15 +55,15 @@ fi
|
||||||
|
|
||||||
if [ $firmware_nonfree = "yes" ]; then
|
if [ $firmware_nonfree = "yes" ]; then
|
||||||
firmware_nonfree=1
|
firmware_nonfree=1
|
||||||
ynh_app_setting_set $app firmware_nonfree $firmware_nonfree
|
ynh_app_setting_set --app=$app --key=firmware_nonfree --value=$firmware_nonfree
|
||||||
elif [ $firmware_nonfree = "no" ]; then
|
elif [ $firmware_nonfree = "no" ]; then
|
||||||
firmware_nonfree=0
|
firmware_nonfree=0
|
||||||
ynh_app_setting_set $app firmware_nonfree $firmware_nonfree
|
ynh_app_setting_set --app=$app --key=firmware_nonfree --value=$firmware_nonfree
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z $service_name ]; then
|
if [ -z $service_name ]; then
|
||||||
service_name="ynh-hotspot"
|
service_name="ynh-hotspot"
|
||||||
ynh_app_setting_set $app service_name $service_name
|
ynh_app_setting_set --app=$app --key=service_name --value=$service_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -139,6 +144,7 @@ ynh_script_progression --message="Upgrading php-fpm configuration..."
|
||||||
|
|
||||||
# Create a dedicated php-fpm config
|
# Create a dedicated php-fpm config
|
||||||
ynh_add_fpm_config
|
ynh_add_fpm_config
|
||||||
|
phpversion=$(ynh_app_setting_get --app=$app --key=phpversion)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC UPGRADE
|
# SPECIFIC UPGRADE
|
||||||
|
|
Loading…
Add table
Reference in a new issue