Pull request: all: imp install script logs, systemd unit file

Updates #3579.

Squashed commit of the following:

commit 9a25fe15c999b351639d4baaa556c0b6e52c3102
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Wed Sep 22 18:09:25 2021 +0300

    all: imp install script logs, systemd unit file
This commit is contained in:
Ainar Garipov 2021-09-22 18:18:23 +03:00
parent e1e064db59
commit 5aed8db5cf
2 changed files with 2 additions and 2 deletions

View File

@ -395,7 +395,7 @@ ConditionFileIsExecutable={{.Path|cmdEscape}}
[Service]
StartLimitInterval=5
StartLimitBurst=10
ExecStartPre=mkdir -p /var/log/
ExecStartPre=/bin/mkdir -p /var/log/
ExecStart={{.Path|cmdEscape}}{{range .Arguments}} {{.|cmd}}{{end}}
{{if .ChRoot}}RootDirectory={{.ChRoot|cmd}}{{end}}
{{if .WorkingDirectory}}WorkingDirectory={{.WorkingDirectory|cmdEscape}}{{end}}

View File

@ -451,7 +451,7 @@ unpack() {
;;
esac
log "successfully unpacked, contents: $( echo; ls -l -A "$out_dir" )"
log "successfully unpacked, contents: $( echo; ls -l -A "$agh_dir" )"
rm "$pkg_name"
}