mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-08 04:04:42 +02:00
fix freeradius file permission (FIX #48)
This commit is contained in:
parent
e77d8c555f
commit
cd965911f6
@ -12,7 +12,6 @@ RUN set -xe \
|
|||||||
make \
|
make \
|
||||||
openssl \
|
openssl \
|
||||||
&& /etc/raddb/certs/bootstrap \
|
&& /etc/raddb/certs/bootstrap \
|
||||||
&& chown -R root:radius /etc/raddb/certs \
|
|
||||||
&& ln -s /etc/raddb/mods-available/sql \
|
&& ln -s /etc/raddb/mods-available/sql \
|
||||||
/etc/raddb/mods-available/sqlcounter /etc/raddb/mods-enabled \
|
/etc/raddb/mods-available/sqlcounter /etc/raddb/mods-enabled \
|
||||||
&& sed -i -e 's@driver =.*@driver = "rlm_sql_mysql"@' \
|
&& sed -i -e 's@driver =.*@driver = "rlm_sql_mysql"@' \
|
||||||
@ -23,6 +22,7 @@ RUN set -xe \
|
|||||||
&& sed -i -e '/^#\t*eap$/s@^#@@' \
|
&& sed -i -e '/^#\t*eap$/s@^#@@' \
|
||||||
-e '/^#\teap {$/,/#\t}$/s@^#@@' \
|
-e '/^#\teap {$/,/#\t}$/s@^#@@' \
|
||||||
/etc/raddb/sites-enabled/default
|
/etc/raddb/sites-enabled/default
|
||||||
|
&& chown -R root:radius /etc/raddb
|
||||||
|
|
||||||
VOLUME /etc/raddb
|
VOLUME /etc/raddb
|
||||||
|
|
||||||
|
@ -22,7 +22,8 @@ RUN set -xe \
|
|||||||
&& echo "INSERT INTO radcheck VALUES('0','user','Cleartext-Password',':=','pass');" | sqlite3 freeradius.db \
|
&& echo "INSERT INTO radcheck VALUES('0','user','Cleartext-Password',':=','pass');" | sqlite3 freeradius.db \
|
||||||
&& radiusd \
|
&& radiusd \
|
||||||
&& radtest user pass localhost 0 testing123 \
|
&& radtest user pass localhost 0 testing123 \
|
||||||
&& echo "DELETE FROM radcheck WHERE id='0';" | sqlite3 freeradius.db
|
&& echo "DELETE FROM radcheck WHERE id='0';" | sqlite3 freeradius.db \
|
||||||
|
&& chown -R root:radius /etc/raddb
|
||||||
|
|
||||||
VOLUME /etc/raddb
|
VOLUME /etc/raddb
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user