summarylogtreecommitdiffstats
path: root/mantisbt.install
diff options
context:
space:
mode:
authorDavid Runge2019-06-15 00:22:39 +0200
committerDavid Runge2019-06-15 00:22:39 +0200
commit74692c1233eaf2aff2771970269ea951c0d7b3f6 (patch)
treebafe7cb5083d30b64ec2e993adf34dfa55bc0b09 /mantisbt.install
parente7d2d0ef14f171a269e8a0bbe20815981052accd (diff)
downloadaur-74692c1233eaf2aff2771970269ea951c0d7b3f6.tar.gz
PKGBUILD: Upgrading to 2.21.1. Adding sysusers and uwsgi integration. Removing useless optdepends (web servers).
mantisbt.tmpfiles: Adding /run/mantisbt, owned by user/group mantisbt. mantisbt.install: Updating informational printout about requiring separate user. mantisbt.uwsgi: Adding uWSGI integration. mantisbt.sysusers: Adding separate user/group mantisbt.
Diffstat (limited to 'mantisbt.install')
-rw-r--r--mantisbt.install20
1 files changed, 16 insertions, 4 deletions
diff --git a/mantisbt.install b/mantisbt.install
index 8bb71b3c5dc..9d725412cd4 100644
--- a/mantisbt.install
+++ b/mantisbt.install
@@ -1,12 +1,24 @@
pre_upgrade() {
cd /usr/share/webapps/mantisbt
- cp mantis_offline.php.sample mantis_offline.php
+ ln -sv mantis_offline.php.sample mantis_offline.php
}
post_upgrade() {
- echo "Please follow the steps from 2.5.2 onwards at: https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.install.upgrade"
- echo "After upgrading, bring MantisBT back to normal operation mode by deleting mantis_offline.php as follows:"
- echo "rm /usr/share/webapps/mantisbt/mantis_offline.php"
+ local new_package_version="$1"
+ local old_package_version="$2"
+ if [ "$(vercmp "${old_package_version}" "2.22.1")" -le 0 ]; then
+cat <<EOF
+The webapp now needs to be run as its own user/group: mantisbt/mantisbt.
+EOF
+ fi
+
+ if [ "$(vercmp "${new_package_version}" "2.5.2")" -ge 0 ]; then
+cat <<EOF
+Follow the upgrade steps:
+https://mantisbt.org/docs/master/en-US/Admin_Guide/html-desktop/#admin.install.upgrade
+Afterwards, remove /usr/share/webapps/mantisbt/mantis_offline.php.
+EOF
+ fi
}
# vim: ts=2 sw=2 et: