mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-16 14:34:54 +02:00
26 lines
469 B
Bash
Executable file
26 lines
469 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Script to run at the end of the installation
|
|
set -eu
|
|
|
|
USER="dfly"
|
|
DIR_NAME="dragonfly"
|
|
GROUP="$USER"
|
|
CONFFILE="/etc/${DIR_NAME}/${DIR_NAME}.conf"
|
|
|
|
if [ "$1" = "configure" ]
|
|
then
|
|
if ! dpkg-statoverride --list ${CONFFILE} >/dev/null 2>&1
|
|
then
|
|
dpkg-statoverride --update --add ${USER} ${GROUP} 640 ${CONFFILE}
|
|
fi
|
|
fi
|
|
|
|
#DEBHELPER#
|
|
|
|
if [ "$1" = "configure" ]
|
|
then
|
|
find /etc/${DIR_NAME} -maxdepth 1 -type d -name '${DIR_NAME}.*.d' -empty -delete
|
|
fi
|
|
|
|
exit 0
|