Skip to content

Commit 70a05bd

Browse files
committed
chown/chmod
1 parent ac27867 commit 70a05bd

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

freebsd/preinst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ if ! id -u ${USERNAME} >/dev/null 2>&1
77
then
88
pw user add -n ${USERNAME} -g nogroup -c "Defguard" -d /nonexistent -s /usr/sbin/nologin
99
fi
10+
11+
mkdir -p /etc/defguard
12+
chown ${USERNAME}:${USERNAME} /etc/defguard
13+
chmod 750 /etc/defguard

linux/preinst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ USERNAME=defguard
66
if ! id -u ${USERNAME} >/dev/null 2>&1; then
77
useradd --system --user-group --no-create-home ${USERNAME}
88
fi
9+
10+
mkdir -p /etc/defguard
11+
chown ${USERNAME}:${USERNAME} /etc/defguard
12+
chmod 750 /etc/defguard

0 commit comments

Comments
 (0)