Skip to content

Commit d7862bf

Browse files
committed
packaging: create /var/lib/evebox directory in debian after-install script
The debian package creates the evebox user with /var/lib/evebox as home directory but doesn't actually create the directory. This causes issues when the evebox services try to use EVEBOX_DATA_DIRECTORY=/var/lib/evebox. Fixes #346
1 parent 4a48e05 commit d7862bf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packaging/debian/after-install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@ if ! /usr/bin/getent passwd ${USERNAME} > /dev/null; then
1313
--shell /usr/sbin/nologin \
1414
${USERNAME}
1515
fi
16+
17+
# Create the data directory if it doesn't exist
18+
if [ ! -d ${HOMEDIR} ]; then
19+
mkdir -p ${HOMEDIR}
20+
chown ${USERNAME}:${USERNAME} ${HOMEDIR}
21+
chmod 750 ${HOMEDIR}
22+
fi

0 commit comments

Comments
 (0)