added urbackup and some todos

This commit is contained in:
Bachir Soussi Chiadmi 2018-10-16 15:34:15 +02:00
parent 4d7fa59a86
commit fff73f9e3d
4 changed files with 21 additions and 6 deletions

View File

@ -130,6 +130,11 @@ echo -e "\033[35;1mInstalling Redis \033[0m"
sleep 3 sleep 3
apt-get --yes --force-yes install redis-server php-redis apt-get --yes --force-yes install redis-server php-redis
# TODO set maxmemory=2gb
# TODO set maxmemory-policy=volatile-lru
# TODO comment all save line
systemctl enable redis-server systemctl enable redis-server
systemctl restart redis-server systemctl restart redis-server
echo -e "\033[92;1mRedis installed\033[Om" echo -e "\033[92;1mRedis installed\033[Om"

View File

@ -20,6 +20,6 @@ sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen
locale-gen locale-gen
apt-get --yes --force-yes install ntp apt-get --yes --force-yes install ntp
dpkg-reconfigure tzdata dpkg-reconfigure tzdata
apt-get --yes --force-yes install etckeeper needrestart apt-get --yes --force-yes install tmux etckeeper needrestart
echo -e "\033[92;1mMisc done \033[Om" echo -e "\033[92;1mMisc done \033[Om"

View File

@ -38,12 +38,12 @@ apt install build-essential "g++" "libcrypto++-dev" libz-dev -y
# libwxgtk3.0-dev # libwxgtk3.0-dev
# Download the UrBackup client source files and extract them # Download the UrBackup client source files and extract them
wget -P /tmp/ https://hndl.urbackup.org/Client/latest/urbackup-client-2.2.5.tar.gz wget -P /tmp/ https://hndl.urbackup.org/Client/latest/urbackup-client-2.2.6.tar.gz
cd /tmp cd /tmp
tar xzf /tmp/urbackup-client-2.2.5.tar.gz tar xzf /tmp/urbackup-client-2.2.6.tar.gz
# Build the UrBackup client and install it # Build the UrBackup client and install it
cd /tmp/urbackup-client-2.2.5.0 cd /tmp/urbackup-client-2.2.6.0
./configure --enable-headless ./configure --enable-headless
make -j4 make -j4
make install make install

View File

@ -94,10 +94,20 @@ else
echo -e 'zabbix-agent not installed' echo -e 'zabbix-agent not installed'
fi fi
# urbackup while [ "$_install_urbackup" != "yes" ] && [ "$_install_urbackup" != "no" ]
do
echo -n "Should we install urbackup client ? [yes|no] "
read _install_urbackup
done
if [ "$_install_urbackup" = "yes" ]; then
. bin/urbackup.sh
else
echo -e 'urbackup client not installed'
fi
. bin/dotfiles.sh . bin/dotfiles.sh
. bin/autoupdate.sh # . bin/autoupdate.sh
# echo -e '\033[35m # echo -e '\033[35m
# ______________ _______ # ______________ _______