1
0
Fork 0

add urbackup and clone wordops

This commit is contained in:
VirtuBox 2019-11-26 12:50:03 +01:00
parent 8908018686
commit 7f4d04c266
Signed by: virtubox
GPG Key ID: 22EB296C97BAD476
1 changed files with 16 additions and 2 deletions

View File

@ -7,7 +7,6 @@ else
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]' PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[01;33m\]@\[\033[01;36m\]\h \[\033[01;33m\]\w \[\033[01;35m\]\$ \[\033[00m\]'
fi fi
if [ "$(id -u)" != "0" ]; then if [ "$(id -u)" != "0" ]; then
IS_SUDOERS=$(groups | grep sudo) IS_SUDOERS=$(groups | grep sudo)
if [ -n "$(command -v sudo)" ] && [ -n "$IS_SUDOERS" ]; then if [ -n "$(command -v sudo)" ] && [ -n "$IS_SUDOERS" ]; then
@ -672,6 +671,19 @@ _BACK_FILE() {
fi fi
} }
_URBACKUP_CLIENT() {
TF=$(mktemp) && wget "https://hndl.urbackup.org/Client/2.4.9/UrBackup%20Client%20Linux%202.4.9.sh" -O "$TF" && sudo sh "$TF"
rm -f "$TF"
sed -i 's/RESTORE=disabled/RESTORE="server-confirms"/' /etc/default/urbackupclient
wget -O "$HOME/mysqldump.sh" vtb.cx/mysqldump
chmod +x "$HOME/mysqldump.sh"
if command_exists ufw; then
ufw allow from 144.76.159.118 to any port 35621
ufw allow from 144.76.159.118 to any port 35622
ufw allow from 144.76.159.118 to any port 35623
fi
}
# enable color support of ls and also add handy aliases # enable color support of ls and also add handy aliases
# some more ls aliases # some more ls aliases
#alias wp='/usr/bin/wp --allow-root' #alias wp='/usr/bin/wp --allow-root'
@ -750,4 +762,6 @@ alias SSETUP=_SETUP_CONTROLLER
alias journalctfail='journalctl -b -p err -S "yesterday"' alias journalctfail='journalctl -b -p err -S "yesterday"'
alias zabbix-update=_ZABBIX_UPDATE alias zabbix-update=_ZABBIX_UPDATE
alias bak=_BACK_FILE 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 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