|
@@ -12,17 +12,15 @@ ADD etc/cron.d/freeradius-cron /etc/cron.d/freeradius-cron
|
|
|
RUN echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list; \
|
|
|
apt-get update; \
|
|
|
- apt-get install -yq vim php5 php5-cli \
|
|
|
+ apt-get install -yq vim freeradius-common freeradius-mysql freeradius php5 php5-cli \
|
|
|
php5-mysql php-pear php-soap php5-xsl cron patch apache2 libapache2-mod-php5 \
|
|
|
sudo supervisor; \
|
|
|
- apt-get install -yq freeradius-common freeradius-mysql freeradius; \
|
|
|
pear install Net_CheckIP; \
|
|
|
chmod 0644 /etc/cron.d/freeradius-cron; \
|
|
|
touch /var/log/cron.log; \
|
|
|
- echo "ALL ALL=NOPASSWD: /bin/kill" >> /etc/sudoers; \
|
|
|
chmod -R 755 /etc/freeradius/; \
|
|
|
- useradd -s /bin/false freeradius; \
|
|
|
- chown freerad.freerad /var/log/freeradius/; \
|
|
|
+ useradd -s /bin/false freeradius; useradd -s /bin/false freerad; chown freerad.freerad /var/log/freeradius/; \
|
|
|
+ echo "ALL ALL=NOPASSWD: /bin/kill" >> /etc/sudoers; \
|
|
|
rm /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|