Przeglądaj źródła

install: touch log

Chris Vogel 1 rok temu
rodzic
commit
7bc371a828
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      scripts/install

+ 2 - 0
scripts/install

@@ -115,6 +115,8 @@ ynh_add_systemd_config
 ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
 ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
 yunohost service add $app --description="A decentral federated small advertisement platform" --log="/var/log/$app/$app.log"
 yunohost service add $app --description="A decentral federated small advertisement platform" --log="/var/log/$app/$app.log"
 #  logfile contains possibly the secret setup URL
 #  logfile contains possibly the secret setup URL
+mkdir -m755 -p "/var/log/$app"
+touch "/var/log/$app/$app.log"
 chmod 640 "/var/log/$app/$app.log"
 chmod 640 "/var/log/$app/$app.log"
 # start service
 # start service
 ynh_systemd_action --service_name=$app --action="start"
 ynh_systemd_action --service_name=$app --action="start"