Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UnixMaster at Central-IT
idp-tools
Commits
4db65a49
Commit
4db65a49
authored
Jul 05, 2016
by
Cédric BRINER
Committed by
Cédric BRINER
Jul 05, 2016
Browse files
added shell-mysql
parent
1723a1b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
idp-tools
View file @
4db65a49
...
...
@@ -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
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment