From fff73f9e3d6af0f67f42dbfa6262e5217f1fee25 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Tue, 16 Oct 2018 15:34:15 +0200 Subject: [PATCH] added urbackup and some todos --- bin/lemp.sh | 5 +++++ bin/misc.sh | 2 +- bin/urbackup.sh | 6 +++--- install.sh | 14 ++++++++++++-- 4 files changed, 21 insertions(+), 6 deletions(-) diff --git a/bin/lemp.sh b/bin/lemp.sh index 6ac738b..d68b3ca 100755 --- a/bin/lemp.sh +++ b/bin/lemp.sh @@ -130,6 +130,11 @@ echo -e "\033[35;1mInstalling Redis \033[0m" sleep 3 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 restart redis-server echo -e "\033[92;1mRedis installed\033[Om" diff --git a/bin/misc.sh b/bin/misc.sh index 03a221f..2e2d2dc 100755 --- a/bin/misc.sh +++ b/bin/misc.sh @@ -20,6 +20,6 @@ sed -i "s/^# en_GB.UTF-8/en_GB.UTF-8/g" /etc/locale.gen locale-gen apt-get --yes --force-yes install ntp 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" diff --git a/bin/urbackup.sh b/bin/urbackup.sh index c5ca155..f6598e2 100755 --- a/bin/urbackup.sh +++ b/bin/urbackup.sh @@ -38,12 +38,12 @@ apt install build-essential "g++" "libcrypto++-dev" libz-dev -y # libwxgtk3.0-dev # 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 -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 -cd /tmp/urbackup-client-2.2.5.0 +cd /tmp/urbackup-client-2.2.6.0 ./configure --enable-headless make -j4 make install diff --git a/install.sh b/install.sh index 9796a2b..d21e253 100755 --- a/install.sh +++ b/install.sh @@ -94,10 +94,20 @@ else echo -e 'zabbix-agent not installed' 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/autoupdate.sh +# . bin/autoupdate.sh # echo -e '\033[35m # ______________ _______