1
0
Fork 0

add wo_full_upgrade

This commit is contained in:
VirtuBox 2019-10-23 18:30:39 +02:00
parent a5d87503fc
commit aae4ee3c37
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 17 additions and 0 deletions

View File

@ -573,6 +573,22 @@ _BACKPORT_PACKAGE() {
fi
}
_WO_FULL_UPGRADE() {
[ ! -f "$HOME/.gitconfig" ] && {
sudo bash -c 'echo -e "[user]\n\tname = $USER\n\temail = root@wops.cc" > $HOME/.gitconfig'
}
if [ -d "$HOME/WordOps" ]; then
git -C "$HOME/WordOps" stash
git -C "$HOME/WordOps" pull origin updating-configuration
else
git clone --depth=1 --branch=updating-configuration https://github.com/WordOps/WordOps.git "$HOME/WordOps"
fi
cd "$HOME/WordOps" || exit 1
sudo bash install --travis --force
}
# enable color support of ls and also add handy aliases
# some more ls aliases
#alias wp='/usr/bin/wp --allow-root'
@ -646,3 +662,4 @@ alias vdir='vdir --color=auto'
alias wo-virtualenv=_PYTHON_VIRTUALENV
alias wp-fix-perms=_WP_PERMISSIONS
alias upgrade-wo-dev='python3 -m pip install git+git://github.com/WordOps/WordOps.git@updating-configuration#egg=wordops -U'
alias upgrade-wo-full=_WO_FULL_UPGRADE