add wo_full_upgrade
This commit is contained in:
parent
a5d87503fc
commit
aae4ee3c37
17
mybashrc
17
mybashrc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue