fix service_name if empty

This commit is contained in:
Kayou
2019-03-11 00:44:58 +01:00
parent f7c255a9cf
commit 3757b70454

View File

@@ -48,6 +48,11 @@ elif [ $firmware_nonfree = "no" ]; then
ynh_app_setting_set $app firmware_nonfree $firmware_nonfree
fi
if [ -z $service_name ]; then
service_name="ynh-hotspot"
ynh_app_setting_set $app service_name $service_name
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================