22-include .env
33export
44
5- .PHONY : help start start-logs stop stop-logs restart restart-logs logs build configure radius-test test check-prereqs
5+ .PHONY : help start start-logs stop stop-logs restart restart-logs start-live logs build configure radius-test test check-prereqs
66
77help :
88 @echo " Usage: make [target]"
@@ -27,7 +27,7 @@ start: check-prereqs
2727 @echo " --> Starting containers in detached mode..."
2828 @docker compose up -d
2929
30- star -live : check-prereqs
30+ start -live : check-prereqs
3131 @echo " --> Starting containers in detached mode..."
3232 @docker compose up
3333
6363
6464configure :
6565 @echo " --> Launching Okta agent configuration script..."
66+ @docker compose up -d okta-radius-agent
6667 @docker compose exec okta-radius-agent /bin/bash -c " source /opt/okta/ragent/scripts/configure.sh"
6768
6869radius-test :
@@ -73,13 +74,13 @@ test: radius-test
7374
7475check-prereqs :
7576 @echo " --> Checking prerequisites..."
76- @# 1. Check deb file
77- @if ! ls ./docker/okta-radius-agent/package/OktaRadiusAgentSetup-* .deb 1> /dev/null 2>&1 ; then \
78- echo " \033[0;31mERROR: Okta RADIUS Agent installer (.deb) not found!\033[0m" ; \
79- echo " Please place the downloaded agent file in the './docker/okta-radius-agent/package/' directory." ; \
77+ @# 1. Check deb file OR DEB_URL
78+ @if ! ls ./docker/okta-radius-agent/package/OktaRadiusAgentSetup-* .deb 1> /dev/null 2>&1 && [ -z " $$ DEB_URL " ] ; then \
79+ echo " \033[0;31mERROR: Okta RADIUS Agent installer (.deb) not found and DEB_URL is not set !\033[0m" ; \
80+ echo " Please place the downloaded agent file in the './docker/okta-radius-agent/package/' directory or set the DEB_URL environment variable ." ; \
8081 exit 1; \
8182 fi
82- @echo " [✔] Okta RADIUS Agent installer found."
83+ @echo " [✔] Okta RADIUS Agent installer found or DEB_URL is set ."
8384 @# 2. Check that specific required variables are not empty
8485 @for var in OKTA_ORG RADIUS_SECRET OPENVPN_PASSWORD; do \
8586 if [ -z " $$ {!var}" ]; then \
0 commit comments