Fixed environmental variables

This commit is contained in:
saber-nyan
2019-11-18 18:20:30 +03:00
parent f673cb0fcb
commit 8f241c5ad8
4 changed files with 23 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
#!/bin/sh
IFACE="$(ls /sys/class/net | grep '^e')"
echo "Capturing on interface ${IFACE} with IP ${LOCAL_IP}..."
echo "--> DEBUG: Web login is ${WEB_LOGIN}:${WEB_PASSWORD}"
exec java -jar app.jar --spring.datasource.url="jdbc:postgresql://127.0.0.1:65001/${DB_NAME}" --spring.datasource.username="${DB_USER}" --spring.datasource.password="${DB_PASSWORD}" --interface-name="${IFACE}" --local-ip="${LOCAL_IP}" --account-login="${WEB_LOGIN}" --account-password="${WEB_PASSWORD}" --server.port=65000