Browse Source

Add a proper --test_status command

Alexandre Aubin 4 years ago
parent
commit
6056df3b53
3 changed files with 3 additions and 3 deletions
  1. 1 1
      scripts/install
  2. 1 1
      scripts/restore
  3. 1 1
      scripts/upgrade

+ 1 - 1
scripts/install

@@ -308,7 +308,7 @@ fi
 #=================================================
 ynh_script_progression --message="Integrating service in YunoHost..."
 
-yunohost service add $service_name --description "Creates a Wi-Fi access point"
+yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd"
 
 #=================================================
 # START SYSTEMD SERVICE

+ 1 - 1
scripts/restore

@@ -136,7 +136,7 @@ systemctl enable $service_name.service --quiet
 #=================================================
 ynh_script_progression --message="Integrating service in YunoHost..."
 
-yunohost service add $service_name --description "Creates a Wi-Fi access point"
+yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd"
 
 #=================================================
 # START SYSTEMD SERVICE

+ 1 - 1
scripts/upgrade

@@ -198,7 +198,7 @@ find ${final_path}/ -type d -exec chmod +x {} \;
 #=================================================
 ynh_script_progression --message="Integrating service in YunoHost..."
 
-yunohost service add $service_name --description "Creates a Wi-Fi access point"
+yunohost service add $service_name --description "Creates a Wi-Fi access point" --test_status "systemctl is-active hostapd"
 
 #=================================================
 # START SYSTEMD SERVICE