Fix delete sites
This commit is contained in:
parent
e47cb917c4
commit
025c894697
11
mybashrc
11
mybashrc
|
@ -690,13 +690,8 @@ _DELETE_WO_SITES() {
|
|||
echo -ne " deleting $site [..]\r"
|
||||
if {
|
||||
wo site delete $site --force
|
||||
} >>/var/log/wo/test.log; then
|
||||
echo -ne " deleting $site [${CGREEN}OK${CEND}]\\r"
|
||||
echo -ne '\n'
|
||||
else
|
||||
echo -e " deleting $site [${CRED}FAIL${CEND}]"
|
||||
echo -ne '\n'
|
||||
exit_script
|
||||
}; then
|
||||
echo -e '\t[OK]'
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
@ -782,4 +777,4 @@ alias bak=_BACK_FILE
|
|||
alias update-wo-fast='python3 -m pip install -I "git+git://github.com/WordOps/WordOps.git@updating-configuration#egg=wordops"'
|
||||
alias clone-wordops='git clone https://github.com/WordOps/WordOps.git -b updating-configuration'
|
||||
alias urbackup-client-setup=_URBACKUP_CLIENT
|
||||
alias delete-all-site=_DELETE_WO_SITES
|
||||
alias delete-all-site=_DELETE_WO_SITES
|
||||
|
|
Loading…
Reference in New Issue