some entrypoint tweaks
This commit is contained in:
parent
f799ad2612
commit
07c4bb90bc
|
@ -1,11 +1,16 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -f "/etc/raddb/clients.conf" ]; then
|
if [ -f "/config/clients.conf" ]; then
|
||||||
echo "Radius config already exists, skipping config copy..."
|
echo "Radius config already exists, skipping config copy..."
|
||||||
|
chown -R freerad:freerad /config
|
||||||
|
ln -s /etc/raddb /config
|
||||||
else
|
else
|
||||||
echo "Radius config does not exist copying..."
|
echo "Radius config does not exist, copying..."
|
||||||
cp -Rf /defaults/raddb/* /etc/raddb/
|
rm -Rf /defaults/raddb
|
||||||
|
cp -Rf /defaults/raddb/* /config/
|
||||||
|
chown -R freerad:freerad /config
|
||||||
|
ln -s /etc/raddb /config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# this if will check if the first argument is a flag
|
# this if will check if the first argument is a flag
|
||||||
|
|
Loading…
Reference in New Issue