summarylogtreecommitdiffstats
path: root/tomee.install
diff options
context:
space:
mode:
authorMohammadreza Abdollahzadeh2022-01-12 10:20:32 +0330
committerMohammadreza Abdollahzadeh2022-01-12 10:20:32 +0330
commitc22dc636a60dfe375a0a3dcba0795ba48f7193c8 (patch)
tree63e5674ee3ea570bd278f688b05546a90e74d03d /tomee.install
downloadaur-c22dc636a60dfe375a0a3dcba0795ba48f7193c8.tar.gz
initial import
Diffstat (limited to 'tomee.install')
-rw-r--r--tomee.install18
1 files changed, 18 insertions, 0 deletions
diff --git a/tomee.install b/tomee.install
new file mode 100644
index 000000000000..ceac15675220
--- /dev/null
+++ b/tomee.install
@@ -0,0 +1,18 @@
+pre_upgrade() {
+ echo " -> Stoping tomee.service ..."
+ systemctl stop tomee.service
+ wait
+}
+
+post_upgrade() {
+ echo " -> Updating installation directory permissions ..."
+ chmod -R u=rwX,g=rwX,o=rX opt/tomee
+}
+
+pre_remove() {
+ echo " -> Stoping tomee.service ..."
+ systemctl stop tomee.service
+ wait
+ echo " -> Disabling tomee.service ..."
+ systemctl disable tomee.service
+}