Chris Vogel преди 1 година
родител
ревизия
7bc371a828
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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
 yunohost service add $app --description="A decentral federated small advertisement platform" --log="/var/log/$app/$app.log"
 #  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"
 # start service
 ynh_systemd_action --service_name=$app --action="start"