Subversion Repositories ALCASAR

Rev

Rev 3209 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 3209 Rev 3272
Line 28... Line 28...
28
 
28
 
29
db_query () {
29
db_query () {
30
	if $DRY_RUN && [[ ! "$1" =~ ^'SELECT ' ]]; then
30
	if $DRY_RUN && [[ ! "$1" =~ ^'SELECT ' ]]; then
31
		echo "[SQL] request: \"$1\""
31
		echo "[SQL] request: \"$1\""
32
	else
32
	else
33
		mysql -u root -p"$DB_PASS" -D radius -e "$1" -Ns
33
		mariadb -u root -p"$DB_PASS" -D radius -e "$1" -Ns
34
		[ $? -ne 0 ] && echo "[SQL] ERROR (\"$1\")"
34
		[ $? -ne 0 ] && echo "[SQL] ERROR (\"$1\")"
35
	fi
35
	fi
36
}
36
}
37
 
37
 
38
# Update radacct table attributes
38
# Update radacct table attributes