Commit 1723a1b1 authored by Cédric BRINER's avatar Cédric BRINER Committed by Cédric BRINER
Browse files

usage for reload better

parent 08689e9c
......@@ -1764,8 +1764,8 @@ function reload
fi
if test -z "${pattern_beans}"
then
echo -e "\e[34mA pattern must be specified, or use '.*' otherwise\e[0m"
usage_reload_n_exit
pr "A pattern must be specified, or use '.*' otherwise"
usage_n_exit
fi
lbean_id=$(get_beans_id_n_descriptions | awk '{print $1}' | grep -Pi "${pattern_beans}" )
if test -z "${lbean_id}"
......@@ -1776,7 +1776,7 @@ function reload
get_beans_id_n_descriptions
echo -e "\e[0m"
} | indent 5
usage_reload_n_exit
usage_n_exit
fi
for h in $(echo "${lhost}" | tr -s "," " ")
do
......@@ -1913,22 +1913,25 @@ function usage_n_exit
pb " | load-mysql <dump_path>]"
pb " | sync [--no-restart] <to_host>"
pb " | tungsten-watch-sync <other_host>"
pb " | reload"
pb " | reload <pattern_beans> [host,[...]]"
pb " | aacli [-h | -l [<entityId>] | [-r] <user> <entityId>]"
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 " sync: sync an idp to an other"
pb " reload: tools allowing to reload configuration"
pb " aacli: easier way to use aacli"
exit 1
}
function usage_reload_n_exit
{
echo -e "\e[34mUsage: $0 reload\e[0m"
echo -e "\e[34mExit !\e[0m"
pb " tungsten-status : gives the tungsten status to see if stuff are synchronized"
pb " sync : sync an idp to an other"
pb " reload : tools allowing to reload configuration"
pb " aacli : easier way to use aacli"
pb " reload : to reload attribute"
pb " reload <pattern_beans> [host,[...]]"
pb " host: is not specified then do it on this host"
pb " pattern_beans: is a perl RE on the first raw of the following\e[0m"
{
echo -en "\e[34m"
get_beans_id_n_descriptions
echo -e "\e[0m"
} | indent 11
pb "Exit !"
exit 1
}
......@@ -1991,16 +1994,7 @@ case "$1" in
shift
if test $# = 0
then
echo -e "\e[34mUsage: $0 reload <pattern_beans> [host,[host]]\e[0m"
echo -e "\e[34m host: is not specified then do it on this host\e[0m"
echo -e "\e[34m pattern_beans: is a perl RE on the first raw of the following\e[0m"
{
echo -en "\e[34m"
get_beans_id_n_descriptions
echo -e "\e[0m"
} | indent 5
echo -e "\e[34mExit !\e[0m"
exit 1
usage_n_exit
fi
pattern_beans=$1
shift
......
Markdown is supported
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