summarylogtreecommitdiffstats
path: root/cups.install
diff options
context:
space:
mode:
authorlilac2019-02-27 17:20:37 +0800
committerlilac2019-02-27 17:20:37 +0800
commitfa92ac57f309130a64d352c9b09470e38388a220 (patch)
treec92e48dd2241bcc020c8b0200cd5d5c5d3829b1e /cups.install
downloadaur-fa92ac57f309130a64d352c9b09470e38388a220.tar.gz
update by lilac
Diffstat (limited to 'cups.install')
-rw-r--r--cups.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/cups.install b/cups.install
new file mode 100644
index 000000000000..c83a437ea8c3
--- /dev/null
+++ b/cups.install
@@ -0,0 +1,20 @@
+post_install() {
+ echo ">> If you use an HTTPS connection to CUPS, the first time you access"
+ echo ">> the interface it may take a very long time before the site comes up."
+ 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
+}
+