summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install34
1 files changed, 34 insertions, 0 deletions
diff --git a/install b/install
new file mode 100644
index 000000000000..a3a6bf326445
--- /dev/null
+++ b/install
@@ -0,0 +1,34 @@
+pre_upgrade()
+{
+ systemctl stop cgatepro && (
+ touch '/tmp/cgatepro-was-started'
+ echo 'Communigaet Pro has been stopped.'
+ )
+}
+
+post_install()
+{
+ chgrp mail "$pkgdir"/opt/CommuniGate -R
+ chgrp mail "$pkgdir"/var/lib/CommuniGate -R
+
+ cat <<- EOF
+
+ ==> Start Communigate Pro using systemd:
+ # systemctl start cgatepro
+ ==> Auto-start Communigate Pro on boot:
+ # systemctl enable cgatepro
+ Setup:
+ ==> Point your web browser to http://localhost:8010 to configure Communigate Pro.
+EOF
+}
+
+post_upgrade()
+{
+ systemctl --system daemon-reload
+ if [ -f '/tmp/cgatepro-was-started' ]; then
+ rm '/tmp/cgatepro-was-started'
+ systemctl start cgatepro
+ echo 'Communigate Pro has been started.'
+ fi
+}
+