Commit 4db65a49 authored by Cédric BRINER's avatar Cédric BRINER Committed by Cédric BRINER
Browse files

added shell-mysql

parent 1723a1b1
......@@ -121,11 +121,6 @@ function create_tmp_idp_sed
}
create_tmp_idp_sed
function get_mysql_pw
{
grep mysql.password /opt/shibboleth-idp/conf/unige.environment.properties | sed "s|.*=\s*||"
}
function ip2host()
{
cat - | sed -f /tmp/idp.sed -u
......@@ -216,6 +211,17 @@ function status_old()
done
}
function get_mysql_pw
{
grep mysql.password /opt/shibboleth-idp/conf/unige.environment.properties | sed "s|.*=\s*||"
}
function shell_mysql
{
mysql -u shibboleth -p$(get_mysql_pw) shibboleth
}
function dump_mysql()
{
if tty &> /dev/null
......@@ -1911,14 +1917,20 @@ function usage_n_exit
pb " | tungsten-status"
pb " | dump-mysql"
pb " | load-mysql <dump_path>]"
pb " | shell-mysql"
pb " | sync [--no-restart] <to_host>"
pb " | tungsten-watch-sync <other_host>"
pb " | reload <pattern_beans> [host,[...]]"
pb " | aacli [-h | -l [<entityId>] | [-r] <user> <entityId>]"
pb " | "
pb " ]"
pb ""
pb "Info:"
pb " adjust : adjust chown and mode on some files"
pb " tungsten-status : gives the tungsten status to see if stuff are synchronized"
pb " dump-mysql : dump myqsl"
pb " load-mysql : load mysql"
pb " shell-mysql : get the mysql shell"
pb " sync : sync an idp to an other"
pb " reload : tools allowing to reload configuration"
pb " aacli : easier way to use aacli"
......@@ -1952,6 +1964,10 @@ case "$1" in
load-mysql)
load_mysql $2
;;
shell-mysql)
shell_mysql $2
;;
ip2host)
ip2host
;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment