diff options
author | Mohammadreza Abdollahzadeh | 2022-01-10 10:32:36 +0330 |
---|---|---|
committer | Mohammadreza Abdollahzadeh | 2022-01-10 10:32:36 +0330 |
commit | ad269b983315ec3242eb06fc1d712f63b4d58cd2 (patch) | |
tree | 331168134fe555083ce1a4c41198dc8cd8d02b68 /wildfly.install | |
parent | cf0a1f7b60026a11d373cda4286b87200065b735 (diff) | |
download | aur-ad269b983315ec3242eb06fc1d712f63b4d58cd2.tar.gz |
fix install file
Diffstat (limited to 'wildfly.install')
-rw-r--r-- | wildfly.install | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/wildfly.install b/wildfly.install index 7be928b74181..dc76a746f867 100644 --- a/wildfly.install +++ b/wildfly.install @@ -1,10 +1,27 @@ post_install() { - echo " Wildfly is installed as a systemd service." - echo " You should run the add-user script (/opt/wildfly/bin/add-user.sh) in order to add a management user" - echo " if you want to access the management console, which listens locally on port 9990." - echo " The main server listens on all networks at port 8080." + echo " -> Wildfly is installed as a systemd service." + echo " -> You should run the add-user script (/opt/wildfly/bin/add-user.sh) in order to add a management user" + echo " -> if you want to access the management console, which listens locally on port 9990." + echo " -> The main server listens on all networks at port 8080." +} + +pre_upgrade() { + echo " -> Stoping wildfly.service ..." + systemctl stop wildfly.service + wait } post_upgrade() { - post_install "$1" + echo " -> Updating installation directory permissions ..." + chmod -R u=rwX,g=rwX,o=rX opt/wildfly + post_install "$1" } + +pre_remove() { + echo " -> Stoping wildfly.service ..." + systemctl stop wildfly.service + wait + echo " -> Disabling wildfly.service ..." + systemctl disable wildfly.service +} + |