summarylogtreecommitdiffstats
path: root/main.install
diff options
context:
space:
mode:
Diffstat (limited to 'main.install')
-rw-r--r--main.install16
1 files changed, 15 insertions, 1 deletions
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/" )