source: debian/gnuboat-server.prerm@ 0d491e9

debian/bullseye debian/jessie
Last change on this file since 0d491e9 was ef56459, checked in by Joachim Langenbach <joachim.langenbach@…>, 10 years ago

Improved handling of data directory in gnuboat-server by postinst and prerm scripts

  • Property mode set to 100644
File size: 380 bytes
RevLine 
[ef56459]1#!/bin/sh
2set -e
3
4mkdir -p /var/spool/gnuboat
5chown www-data:www-data /var/spool/gnuboat
6mkdir -p /usr/share/gnuboat/webservice/data
7
8if [ "$(ls -A /usr/share/gnuboat/webservice/data)" ]; then
9 # do not remove the data directory
10 echo "Your data directory is not empty. Leaving the data directory untouched!"
11else
12 rm -R /usr/share/gnuboat/webservice/data
13fi
14
15#DEBHELPER#
16
17exit 0
Note: See TracBrowser for help on using the repository browser.