summarylogtreecommitdiffstats
path: root/cups.install
diff options
context:
space:
mode:
authorGicu GORODENCO2018-02-10 21:35:12 +0100
committerGicu GORODENCO2018-02-10 21:53:37 +0100
commit7239003199fc758fe512af5f4ba15911b54bd270 (patch)
treeadf453a007adff4945dbd1c0be2ab64ac9473261 /cups.install
parentba45b978f18e1bef2c9b4fa4b3bb596479bd7c8b (diff)
downloadaur-7239003199fc758fe512af5f4ba15911b54bd270.tar.gz
Update to 2.2.6 source code
Diffstat (limited to 'cups.install')
-rw-r--r--cups.install14
1 files changed, 14 insertions, 0 deletions
diff --git a/cups.install b/cups.install
index 23732bb74898..c83a437ea8c3 100644
--- a/cups.install
+++ b/cups.install
@@ -4,3 +4,17 @@ post_install() {
echo ">> This is because the first request triggers the generation of the CUPS"
echo ">> SSL certificates which can be a very time-consuming job."
}
+
+post_upgrade() {
+ # FS#56818 - make sure we change the ownership to the new cups group
+ if [[ $(vercmp 2.2.6-3 $2) = 1 ]]; then
+ chgrp -R 209 /etc/cups
+ echo "Cups daemon is now running under \"cups\" user+group."
+ echo "Please make sure to enable the new user+group change in"
+ echo "/etc/cups/cups-files.conf or merge changes from"
+ echo "/etc/cups/cups-files.conf.default. After a service restart"
+ echo "make sure /etc/cups and all files within are owned by"
+ echo "cups group - run \"chgrp -R cups /etc/cups\"."
+ fi
+}
+