Ignore:
Timestamp:
Aug 9, 2017, 3:40:24 PM (9 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, debian/jessie
Children:
ba861c4
Parents:
1bdb08d
git-author:
Joachim Langenbach <joachim.langenbach@…> (08/08/17 14:40:50)
git-committer:
Joachim Langenbach <joachim.langenbach@…> (08/09/17 15:40:24)
Message:

Fixed gnuboat-puppet.postinst script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • debian/python3-gnuboat.prerm

    • Property mode changed from 120000 to 100644
    r1bdb08d r90530ec  
    1 python2-gnuboat.prerm
     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 TracChangeset for help on using the changeset viewer.