summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohammadreza Abdollahzadeh2022-01-10 10:19:30 +0330
committerMohammadreza Abdollahzadeh2022-01-10 10:19:30 +0330
commit8a19969c5b87101f2e10916898a213a6be3279de (patch)
treeba35afc8106e4971613a48a2e0f6d4e78588d5f3
parent9d5d4ec0839997a1d59160e55600df6e55033b44 (diff)
downloadaur-8a19969c5b87101f2e10916898a213a6be3279de.tar.gz
fix install file
-rw-r--r--payara.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/payara.install b/payara.install
index 52e05adf2cf7..cb41e485076c 100644
--- a/payara.install
+++ b/payara.install
@@ -1,3 +1,19 @@
+pre_upgrade() {
+ echo " -> Stoping payara.service ..."
+ systemctl stop payara.service
+ wait
+}
+
post_upgrade() {
+ echo " -> Updating installation directory permissions ..."
chmod -R u=rwX,g=rwX,o=rX opt/payara
}
+
+pre_remove() {
+ echo " -> Stoping payara.service ..."
+ systemctl stop payara.service
+ wait
+ echo " -> Disabling payara.service ..."
+ systemctl disable payara.service
+}
+