diff options
author | Sky Swimmer | 2021-07-28 14:39:26 +0200 |
---|---|---|
committer | Sky Swimmer | 2021-07-28 14:39:26 +0200 |
commit | 3977c64fd211f157d2648bd113579390d21018c1 (patch) | |
tree | d2f42d0d242a7bbcfb853966ce0e36277c64b607 | |
parent | 3de853da46e442c93c0378585d4562ee6ba3692d (diff) | |
download | aur-3977c64fd211f157d2648bd113579390d21018c1.tar.gz |
Fix install script
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 2 | ||||
-rw-r--r-- | main.install | 16 |
3 files changed, 17 insertions, 3 deletions
@@ -1,7 +1,7 @@ pkgbase = saltedauth pkgdesc = SaltedAuth -- More secure credential manager for Connective http servers. pkgver = 1.0.0 - pkgrel = 5 + pkgrel = 6 install = main.install arch = any groups = connective-server @@ -2,7 +2,7 @@ pkgname=saltedauth pkgver=1.0.0 -pkgrel=5 +pkgrel=6 pkgdesc="SaltedAuth -- More secure credential manager for Connective http servers." arch=( 'any' ) url="" diff --git a/main.install b/main.install index 90c888b1746c..c4785fed5151 100644 --- a/main.install +++ b/main.install @@ -15,7 +15,7 @@ post_install() { mkdir "$serverDir/modules" -p chown connective:connective "$serverDir/modules" -R - cp "/usr/lib/salted/SaltedAuth.jar" "$serverDir/modules/SaltedAuth.jar" -f + ln -sf "/usr/lib/salted/SaltedAuth.jar" "$serverDir/modules/SaltedAuth.jar" chown connective "$serverDir/modules/SaltedAuth.jar" if [ -f "$serverDir"/server.ccfg ]; then @@ -23,6 +23,20 @@ post_install() { fi } +post_upgrade() { + serverDir=/etc/connective-http + classPathFolders=( "libs/" ) + mainType=org.asf.connective.standalone.main.ConnectiveStandalone + credtoolLibs=() + credtoolTarget="" + jvmArguments="-Djava.net.preferIPv4Stack=true" + + if [ -f "/etc/connective-http/config.props" ]; then + source "/etc/connective-http/config.props" + fi + ln -sf "/usr/lib/salted/SaltedAuth.jar" "$serverDir/modules/SaltedAuth.jar" +} + post_remove() { serverDir=/etc/connective-http classPathFolders=( "libs/" ) |