소스 검색

install: touch log

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"