[Git][debian-gis-team/libapache2-mod-tile][master] Assured /run/renderd exists.

Felix Delattre gitlab at salsa.debian.org
Tue Oct 6 20:22:30 BST 2020



Felix Delattre pushed to branch master at Debian GIS Project / libapache2-mod-tile


Commits:
c6284e6e by Felix Delattre at 2020-10-06T16:28:53+00:00
Assured /run/renderd exists.

- - - - -


2 changed files:

- debian/renderd.postinst
- debian/renderd.prerm


Changes:

=====================================
debian/renderd.postinst
=====================================
@@ -13,6 +13,11 @@ case "$1" in
 		    --home /nonexistent --ingroup _renderd \
 		    --no-create-home --quiet --system _renderd
 	fi
+
+	if [ ! -d /run/renderd ] ; then
+        mkdir /run/renderd
+        chown _renderd:_renderd /run/renderd
+    fi
 	;;
     abort-upgrade|abort-remove|abort-deconfigure)
 	;;


=====================================
debian/renderd.prerm
=====================================
@@ -7,6 +7,12 @@ then
     rm -rf /var/cache/renderd/tiles
 fi
 
+# automatically /run/renderd
+if [ -d /run/renderd ]
+then
+    rm -rf /run/renderd
+fi
+
 # automatically remove munin plugins
 if [ -d /etc/munin/plugins ]
 then



View it on GitLab: https://salsa.debian.org/debian-gis-team/libapache2-mod-tile/-/commit/c6284e6e4e9bd2a03186c26e52c9d8c1699ea548

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/libapache2-mod-tile/-/commit/c6284e6e4e9bd2a03186c26e52c9d8c1699ea548
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20201006/bb1aeaac/attachment.html>


More information about the Pkg-grass-devel mailing list