Просмотр исходного кода

Update install

1. Change "service management" to be consistent with 'restore' script. See https://github.com/YunoHost/example_ynh/blob/master/scripts/restore#L99
2. Add a comment about the possibility of adding a description since Yunohost 3.2 (optional and can be removed as it is cherry on top of the cake feature and could be confusing)
Gofannon 6 лет назад
Родитель
Сommit
183f8a6b9d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      scripts/install

+ 3 - 1
scripts/install

@@ -274,7 +274,9 @@ ynh_use_logrotate
 ###		- Remove the section "REMOVE SERVICE FROM ADMIN PANEL" in the remove script
 ###		- As well as the section ADVERTISE SERVICE IN ADMIN PANEL" in the restore script
 
-yunohost service add NAME_INIT.D --log "/var/log/FILE.log"
+yunohost service add $app --log "/var/log/$app/APP.log"
+# if using yunohost version 3.2 or more in the 'manifest.json', a description can be added
+#yunohost service add $app --description "$app daemon for XXX" --log "/var/log/$app/APP.log"
 
 #=================================================
 # SETUP SSOWAT