Browse Source

fix service_name if empty

Kayou 6 years ago
parent
commit
3757b70454
1 changed files with 5 additions and 0 deletions
  1. 5 0
      scripts/upgrade

+ 5 - 0
scripts/upgrade

@@ -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
 #=================================================