Debian Codegraph @

debian/patches/0006-postinst.sh-Do-not-call-chown-recursively.patch

raw symbols SCIP
1 From: Peymaneh <[email protected]>
2 Date: Sat, 17 Dec 2022 16:22:55 +0100
3 Subject: postinst.sh: Do not call chown recursively
4
5 forwarded: not-needed
6 ---
7 dist/scripts/postinstall.sh | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 --- a/dist/scripts/postinstall.sh
11 +++ b/dist/scripts/postinstall.sh
12 @@ -22,7 +22,7 @@
13 # Add log directory with correct permissions
14 if [ ! -d /var/log/caddy ]; then
15 mkdir -p /var/log/caddy
16 - chown -R caddy:caddy /var/log/caddy
17 + chown caddy:caddy /var/log/caddy
18 fi
19 fi
20
21 @@ -52,4 +52,4 @@
22 deb-systemd-invoke try-restart caddy-api.service >/dev/null || true
23 fi
24 fi
25 -fi
26 \ No newline at end of file
27 +fi