streamline the container even more for radius
This commit is contained in:
@@ -4,13 +4,16 @@ ARG VERSION
|
|||||||
FROM freeradius/freeradius-server:${VERSION}
|
FROM freeradius/freeradius-server:${VERSION}
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
||||||
|
VOLUME /config
|
||||||
|
|
||||||
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
|
# hadolint ignore=DL3008,DL3015,SC2086,SC2155
|
||||||
RUN \
|
RUN \
|
||||||
mkdir -p /defaults/raddb/ && \
|
mkdir -p /defaults/raddb/ && \
|
||||||
cp -Rf /etc/raddb/* /defaults/raddb/
|
cp -Rf /etc/raddb/* /defaults/raddb/ && \
|
||||||
|
rm -Rf /etc/raddb && \
|
||||||
|
ln -s /config /etc/raddb
|
||||||
|
|
||||||
|
|
||||||
VOLUME /config
|
|
||||||
COPY ./containers/apps/freeradius/entrypoint.sh /entrypoint.sh
|
COPY ./containers/apps/freeradius/entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -Rf /etc/raddb
|
|
||||||
if [ -f "/config/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..."
|
||||||
else
|
else
|
||||||
@@ -10,7 +9,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
chown -R freerad:freerad /config
|
chown -R freerad:freerad /config
|
||||||
ln -s /etc/raddb /config
|
|
||||||
|
|
||||||
# this if will check if the first argument is a flag
|
# this if will check if the first argument is a flag
|
||||||
# but only works if all arguments require a hyphenated flag
|
# but only works if all arguments require a hyphenated flag
|
||||||
|
|||||||
Reference in New Issue
Block a user