mirror of
https://github.com/JasonHHouse/gaps.git
synced 2026-01-06 02:50:20 -06:00
31 lines
814 B
Batchfile
Executable File
31 lines
814 B
Batchfile
Executable File
#!/bin/bash
|
|
enable_ssl=false
|
|
enable_login=false
|
|
|
|
while getopts s:l: flag
|
|
do
|
|
case "${flag}" in
|
|
s) enable_ssl=${OPTARG};;
|
|
l) enable_login=${OPTARG};;
|
|
*) echo "usage: $0 [-s] [-l]" >&2
|
|
exit 1 ;;
|
|
esac
|
|
done
|
|
|
|
if [ "$enable_ssl" == true ]; then
|
|
if [ "$enable_login" == true ]; then
|
|
echo "Running with SSL and Login"
|
|
java -jar -Dspring.profiles.active=ssl gaps.jar
|
|
else
|
|
echo "Running with SSL and without Login"
|
|
java -jar -Dspring.profiles.active=ssl-no-login gaps.jar
|
|
fi
|
|
else
|
|
if [ "$enable_login" == true ]; then
|
|
echo "Running without SSL and with Login"
|
|
java -jar -Dspring.profiles.active=no-ssl gaps.jar
|
|
else
|
|
echo "Running without SSL and without Login"
|
|
java -jar -Dspring.profiles.active=no-ssl-no-login gaps.jar
|
|
fi
|
|
fi |