debian/bullseye
debian/jessie
|
Last change
on this file since 8aa1ce8 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:
335 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | set -e
|
|---|
| 4 |
|
|---|
| 5 | USER="www-data"
|
|---|
| 6 | DIR="/usr/share/gnuboat/webservice/maps"
|
|---|
| 7 | # Set up any specific permissions needed...
|
|---|
| 8 | if id -u $USER > /dev/null 2>&1; then
|
|---|
| 9 | chown -R ${USER}:${USER} "${DIR}"
|
|---|
| 10 | chmod '0755' "${DIR}"
|
|---|
| 11 | chmod '0644' "${DIR}/*.mbtiles"
|
|---|
| 12 | else
|
|---|
| 13 | chmod '0777' "${DIR}"
|
|---|
| 14 | chmod '0666' "${DIR}/*.mbtiles"
|
|---|
| 15 | fi
|
|---|
| 16 |
|
|---|
| 17 | #DEBHELPER#
|
|---|
| 18 |
|
|---|
| 19 | exit 0
|
|---|
| 20 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.