Subversion Repositories ALCASAR

Rev

Rev 3285 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3285 Rev 3312
Line 19... Line 19...
19
DIR_BIN="/usr/local/bin"
19
DIR_BIN="/usr/local/bin"
20
PASSWD_FILE="/root/ALCASAR-passwords.txt"
20
PASSWD_FILE="/root/ALCASAR-passwords.txt"
21
DB_RADIUS="radius"
21
DB_RADIUS="radius"
22
DB_USER=$(grep '^db_user=' $PASSWD_FILE | cut -d'=' -f 2-)
22
DB_USER=$(grep '^db_user=' $PASSWD_FILE | cut -d'=' -f 2-)
23
DB_PASS=$(grep '^db_password=' $PASSWD_FILE | cut -d'=' -f 2-)
23
DB_PASS=$(grep '^db_password=' $PASSWD_FILE | cut -d'=' -f 2-)
24
new="$(date +%G%m%d-%Hh%M)"		# date & hour of files
24
new="$(date +%Y%m%d-%Hh%M)"		# date & hour of files
25
tmp_file="alcasar-users-database-$new.sql"
25
tmp_file="alcasar-users-database-$new.sql"
26
 
26
 
27
stop_acct () # Close the accounting open sessions
27
stop_acct () # Close the accounting open sessions
28
{
28
{
29
	date_now=`date "+%F %X"`
29
	date_now=`date "+%F %X"`