Skip to content

Commit

Permalink
add $name suffix to log directory provisioning
Browse files Browse the repository at this point in the history
This fixes jordansissel#149
  • Loading branch information
philgebhardt committed Nov 10, 2021
1 parent fb79910 commit 55e4e08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions templates/sysv/default/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ start() {
all support switching users and it invokes execve immediately after chrooting. }}

# Ensure the log directory is setup correctly.
if [ ! -d "{{{ log_directory }}}" ]; then
mkdir "{{{ log_directory }}}"
chown "$user":"$group" "{{{ log_directory }}}"
chmod 755 "{{{ log_directory }}}"
if [ ! -d "{{{ log_directory }}}/$name" ]; then
mkdir "{{{ log_directory }}}/$name"
chown "$user":"$group" "{{{ log_directory }}}/$name"
chmod 755 "{{{ log_directory }}}/$name"
fi

{{#prestart}}
Expand Down

0 comments on commit 55e4e08

Please sign in to comment.