1
0
Fork 0

Fix delete sites

This commit is contained in:
VirtuBox 2019-11-29 13:38:24 +01:00
parent e47cb917c4
commit 025c894697
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 3 additions and 8 deletions

View File

@ -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