Subversion Repositories ALCASAR

Rev

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

Rev 3202 Rev 3272
Line 23... Line 23...
23
 
23
 
24
db_query () {
24
db_query () {
25
	if $DRY_RUN && [[ ! "$1" =~ ^'SELECT ' ]]; then
25
	if $DRY_RUN && [[ ! "$1" =~ ^'SELECT ' ]]; then
26
		echo "[SQL] request: \"$1\""
26
		echo "[SQL] request: \"$1\""
27
	else
27
	else
28
		mysql -u root -p"$DB_PASS" -D radius -e "$1" -Bs
28
		mariadb -u root -p"$DB_PASS" -D radius -e "$1" -Bs
29
		[ $? -ne 0 ] && echo "[SQL] ERROR (\"$1\")"
29
		[ $? -ne 0 ] && echo "[SQL] ERROR (\"$1\")"
30
	fi
30
	fi
31
}
31
}
32
 
32
 
33
for step in $(seq 1 2); do
33
for step in $(seq 1 2); do