New arg to update all servers
This commit is contained in:
parent
7b2a4185c9
commit
e44db62e10
2 changed files with 28 additions and 6 deletions
|
@ -42,7 +42,7 @@ else
|
|||
HOSTNAME="$2"
|
||||
fi
|
||||
|
||||
if [ "$ACTION" == "stop" ] || [ "$ACTION" == "restart" ]
|
||||
if [ "$ACTION" = "stop" ] || [ "$ACTION" = "restart" ]
|
||||
then
|
||||
# Kill old liblersorf screen sessions
|
||||
$SU -c "$SCREEN -ls" intradmin | $GREP '[0-9]+\.lerdorf_[a-zA-Z0-9_-]+' |
|
||||
|
@ -54,7 +54,7 @@ then
|
|||
fi
|
||||
|
||||
|
||||
if [ "$ACTION" == "start" ] || [ "$ACTION" == "restart" ]
|
||||
if [ "$ACTION" = "start" ] || [ "$ACTION" = "restart" ]
|
||||
then
|
||||
case $HOSTNAME in
|
||||
|
||||
|
|
Reference in a new issue