debian/bullseye
debian/jessie
|
Last change
on this file since 1f23ff0 was 8aa1ce8, checked in by Joachim Langenbach <joachim.langenbach@…>, 9 years ago |
|
Fixed python-gnuboat prerm script
Added gnuboat-webserver.postinst script to set permissions of webservice/maps directory
|
-
Property mode
set to
100644
|
|
File size:
557 bytes
|
| Rev | Line | |
|---|
| [60dee944] | 1 | #!/bin/sh
|
|---|
| 2 | set -e
|
|---|
| 3 |
|
|---|
| 4 | DIR_DATA="/var/lib/gnuboat/"
|
|---|
| 5 | DIR_LOG="/var/log/gnuboat/"
|
|---|
| 6 | DIR_SPOOL="/var/spool/gnuboat"
|
|---|
| 7 |
|
|---|
| [8aa1ce8] | 8 | rm -R "${DIR_SPOOL}"
|
|---|
| [60dee944] | 9 |
|
|---|
| 10 | if [ "$(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!"
|
|---|
| 13 | else
|
|---|
| 14 | rm -R "${DIR_DATA}"
|
|---|
| 15 | fi
|
|---|
| 16 |
|
|---|
| 17 | if [ "$(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!"
|
|---|
| 20 | else
|
|---|
| 21 | rm -R "${DIR_LOG}"
|
|---|
| 22 | fi
|
|---|
| 23 |
|
|---|
| 24 | #DEBHELPER#
|
|---|
| 25 |
|
|---|
| 26 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.