source: debian/python3-gnuboat.prerm@ 90530ec

debian/bullseye debian/jessie
Last change on this file since 90530ec was 90530ec, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago

Fixed gnuboat-puppet.postinst script

  • Property mode set to 100644
File size: 557 bytes
RevLine 
[90530ec]1#!/bin/sh
2set -e
3
4DIR_DATA="/var/lib/gnuboat/"
5DIR_LOG="/var/log/gnuboat/"
6DIR_SPOOL="/var/spool/gnuboat"
7
8rm -R "${DIR_SPOLL}"
9
10if [ "$(ls -A ${DIR_DATA})" ]; then
11 # do not remove the data directory
12 echo "Your data directory (${DIR_DATA}) is not empty. Leaving the data directory untouched!"
13else
14 rm -R "${DIR_DATA}"
15fi
16
17if [ "$(ls -A ${DIR_LOG})" ]; then
18 # do not remove the data directory
19 echo "Your log directory (${DIR_LOG}) is not empty. Leaving the log directory untouched!"
20else
21 rm -R "${DIR_LOG}"
22fi
23
24#DEBHELPER#
25
26exit 0
Note: See TracBrowser for help on using the repository browser.