1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-21 01:27:01 +02:00

fix freeradius file permission (FIX #48)

This commit is contained in:
kev 2017-06-06 13:53:04 +08:00
parent e77d8c555f
commit cd965911f6
2 changed files with 3 additions and 2 deletions

View File

@ -12,7 +12,6 @@ RUN set -xe \
make \
openssl \
&& /etc/raddb/certs/bootstrap \
&& chown -R root:radius /etc/raddb/certs \
&& ln -s /etc/raddb/mods-available/sql \
/etc/raddb/mods-available/sqlcounter /etc/raddb/mods-enabled \
&& sed -i -e 's@driver =.*@driver = "rlm_sql_mysql"@' \
@ -23,6 +22,7 @@ RUN set -xe \
&& sed -i -e '/^#\t*eap$/s@^#@@' \
-e '/^#\teap {$/,/#\t}$/s@^#@@' \
/etc/raddb/sites-enabled/default
&& chown -R root:radius /etc/raddb
VOLUME /etc/raddb

View File

@ -22,7 +22,8 @@ RUN set -xe \
&& echo "INSERT INTO radcheck VALUES('0','user','Cleartext-Password',':=','pass');" | sqlite3 freeradius.db \
&& radiusd \
&& 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