| 460,9 → 460,6 |
| secretradius=`cat /dev/urandom | tr -dc '[:alnum:]' | head -c16` |
| echo "# Shared secret between coova-chilli and FreeRadius:" >> $PASSWD_FILE |
| echo "secret_radius=$secretradius" >> $PASSWD_FILE |
| csrfkey=`cat /dev/urandom | tr -dc '[:alnum:]' | head -c16` |
| echo "# Key used to create CSRF-tokens in several ACC forms" >> $PASSWD_FILE |
| echo "csrf_key=$csrfkey" >> $PASSWD_FILE |
| chmod 640 $PASSWD_FILE |
| # copy scripts in in /usr/local/bin |
| cp -fr $DIR_SCRIPTS/alcasar* $DIR_DEST_BIN/. ; chown -R root:root $DIR_DEST_BIN/alcasar* ; chmod -R 740 $DIR_DEST_BIN/alcasar* |
| 799,7 → 796,6 |
| $SED "s?\$DB_RADIUS = .*?\$DB_RADIUS = \"$DB_RADIUS\"\;?g" $DIR_ACC/welcome.php |
| $SED "s?\$DB_USER = .*?\$DB_USER = \"$DB_USER\"\;?g" $DIR_ACC/welcome.php |
| $SED "s?\$radiuspwd = .*?\$radiuspwd = \"$radiuspwd\"\;?g" $DIR_ACC/welcome.php |
| $SED "s?^\$csrf_key = .*?\$csrf_key = \"$csrfkey\"\;?g" $DIR_ACC/manager/htdocs/activity.php |
| chown -R apache:apache $DIR_WEB/* |
| # copy & adapt "freeradius-web" files |
| cp -rf $DIR_CONF/freeradius-web/ /etc/ |