diff options
author | Care Computers | 2015-06-08 23:58:18 +0200 |
---|---|---|
committer | Care Computers | 2015-06-08 23:58:18 +0200 |
commit | 8bde1414ff3521e015ae19dc0a11fcd5bdc0508d (patch) | |
tree | 2cfd6665a1433f29c6a628f124d2882e4fa34116 /install | |
download | aur-8bde1414ff3521e015ae19dc0a11fcd5bdc0508d.tar.gz |
Initial import
Diffstat (limited to 'install')
-rw-r--r-- | install | 34 |
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 +} + |