Skip to content
Snippets Groups Projects
Commit 89f18c6d authored by Pavel Šeda's avatar Pavel Šeda
Browse files

Update postinst

parent 580015f7
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,8 @@ case "$1" in
configure)
cd /opt/kypo2/kypo2-user-and-group/jars
API_JAR=$(ls kypo2-api-user-and-group*.jar | tail -n 1)
if ! [ "$API_JAR" = "kypo2-api-user-and-group.jar" ]; then ln -sf $API_JAR kypo2-api-user-and-group.jar; fi
PERSISTENCE_JAR=$(ls kypo2-persistence-user-and-group*.jar | tail -n 1)
if ! [ "$PERSISTENCE_JAR" = "kypo2-persistence-user-and-group" ]; then ln -sf $PERSISTENCE_JAR kypo2-persistence-user-and-group.jar; fi
REST_JAR=$(ls kypo2-rest-user-and-group*.jar | tail -n 1)
if ! [ "$REST_JAR" = "kypo2-rest-user-and-group.jar" ]; then ln -sf $REST_JAR kypo2-rest-user-and-group.jar; fi
SECURITY_JAR=$(ls kypo2-security-user-and-group*.jar | tail -n 1)
if ! [ "$SECURITY_JAR" = "kypo2-security-user-and-group.jar" ]; then ln -sf $SECURITY_JAR kypo2-security-user-and-group.jar; fi
SERVICE_JAR=$(ls kypo2-service-user-and-group*.jar | tail -n 1)
if ! [ "$SERVICE_JAR" = "kypo2-service-user-and-group.jar" ]; then ln -sf $SERVICE_JAR kypo2-service-user-and-group.jar; fi
mvn install:install-file -Dfile=kypo2-api-user-and-group.jar -Dfile=kypo2-persistence-user-and-group.jar -Dfile=kypo2-rest-user-and-group.jar -Dfile=kypo2-security-user-and-group.jar -Dfile=kypo2-service-user-and-group.jar
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment