From 3fcc1778bbda69f5618c188b7881a398f6b58a00 Mon Sep 17 00:00:00 2001 From: Markus Makela Date: Tue, 12 May 2015 06:43:36 +0300 Subject: [PATCH] Added changing of directory ownership. --- etc/postinst.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/postinst.in b/etc/postinst.in index f5b85f537..8d81907ed 100755 --- a/etc/postinst.in +++ b/etc/postinst.in @@ -19,6 +19,12 @@ then groupadd maxscale fi +# Change the owner of the directories to maxscale:maxscale +chown maxscale:maxscale @MAXSCALE_VARDIR@/log/maxscale +chown maxscale:maxscale @MAXSCALE_VARDIR@/lib/maxscale +chown maxscale:maxscale @MAXSCALE_VARDIR@/cache/maxscale +chown maxscale:maxscale @MAXSCALE_VARDIR@/run/maxscale + # Copy init.d script and ldconfig file cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale /etc/init.d/ cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.conf /etc/ld.so.conf.d/