From 5aed8db5cf9b1a5c0d1bb8a20863c97cc9bdb5e9 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Wed, 22 Sep 2021 18:18:23 +0300 Subject: [PATCH] Pull request: all: imp install script logs, systemd unit file Updates #3579. Squashed commit of the following: commit 9a25fe15c999b351639d4baaa556c0b6e52c3102 Author: Ainar Garipov Date: Wed Sep 22 18:09:25 2021 +0300 all: imp install script logs, systemd unit file --- internal/home/service.go | 2 +- scripts/install.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/home/service.go b/internal/home/service.go index 9078f5f9..28bf4fd6 100644 --- a/internal/home/service.go +++ b/internal/home/service.go @@ -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}} diff --git a/scripts/install.sh b/scripts/install.sh index 10669511..dd0bcdab 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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" }