debian/bullseye
debian/jessie
|
Last change
on this file since ef56459 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
|
| Rev | Line | |
|---|
| [ef56459] | 1 | #!/bin/sh
|
|---|
| 2 | set -e
|
|---|
| 3 |
|
|---|
| 4 | mkdir -p /var/spool/gnuboat
|
|---|
| 5 | chown www-data:www-data /var/spool/gnuboat
|
|---|
| 6 | mkdir -p /usr/share/gnuboat/webservice/data
|
|---|
| 7 |
|
|---|
| 8 | if [ "$(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!"
|
|---|
| 11 | else
|
|---|
| 12 | rm -R /usr/share/gnuboat/webservice/data
|
|---|
| 13 | fi
|
|---|
| 14 |
|
|---|
| 15 | #DEBHELPER#
|
|---|
| 16 |
|
|---|
| 17 | exit 0
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.