„deb/pre-post-build.sh“ ändern

This commit is contained in:
BlubbFish 2022-01-19 21:18:46 +01:00
parent fee852d358
commit f96f19d656

View File

@ -49,6 +49,16 @@ for conffile in ${CONFIGREPLACEASK} ; do
done
echo "" >> postinst
# Create Logfile
if [ -n "${LOGFILE}" ]; then
echo " ucf --three-way /usr/share/${NAME}/logrotate.d/${NAME}.conf /etc/logrotate.d/${NAME}.conf" >> postinst
echo " mkdir -p \$(dirname \"${LOGFILE}\")" >> postinst
echo " touch ${LOGFILE}" >> postinst
echo " chown ${USERNAMEGROUP}:${USERNAMEGROUP} ${LOGFILE}" >> postinst
echo " chmod 644 ${LOGFILE}" >> postinst
echo "" >> postinst
fi
# Set userright to binary folder
echo " chown -R ${USERNAMEGROUP}:${USERNAMEGROUP} /usr/local/bin/${NAME}" >> postinst
echo "" >> postinst
@ -59,15 +69,6 @@ echo " chown -R ${USERNAMEGROUP}:${USERNAMEGROUP} /etc/${NAME}/"
echo " fi" >> postinst
echo "" >> postinst
# Create Logfile
if [ -n "${LOGFILE}" ]; then
echo " mkdir -p \$(dirname \"${LOGFILE}\")" >> postinst
echo " touch ${LOGFILE}" >> postinst
echo " chown ${USERNAMEGROUP}:${USERNAMEGROUP} ${LOGFILE}" >> postinst
echo " chmod 644 ${LOGFILE}" >> postinst
echo "" >> postinst
fi
# Create datadir
if [ -n "${DATADIR}" ]; then
echo " mkdir -p ${DATADIR}" >> postinst