From 52f9f3a8663a0157ee5e88ba0c802a2469300d5d Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 14 Apr 2021 17:08:05 +0200 Subject: [PATCH] Added server scripts --- common/apps/neofetch.sh | 10 +++++----- common/scripts/first_install.sh | 2 +- .../{edraft => public}/scripts/default_installation.sh | 0 .../scripts => vsrv/srcipts}/server_installation.sh | 0 4 files changed, 6 insertions(+), 6 deletions(-) rename users/{edraft => public}/scripts/default_installation.sh (100%) rename users/{edraft/scripts => vsrv/srcipts}/server_installation.sh (100%) diff --git a/common/apps/neofetch.sh b/common/apps/neofetch.sh index f4aa24e..03e77ae 100644 --- a/common/apps/neofetch.sh +++ b/common/apps/neofetch.sh @@ -3,9 +3,9 @@ install_neofetch() { echo "Installing neofetch" sudo apt-get install neofetch -y - sudo echo ` - if [ $USER != "root" ] then - neofetch - fi - ` >>/etc/bash.bashrc + echo ' +if [ $USER != "root" ] then + neofetch +fi + ' | sudo tee -a /etc/bash.bashrc > /dev/null } diff --git a/common/scripts/first_install.sh b/common/scripts/first_install.sh index f89a000..3c9233a 100644 --- a/common/scripts/first_install.sh +++ b/common/scripts/first_install.sh @@ -3,5 +3,5 @@ first_install() { echo 'Installing useful apps' - sudo apt-get install net-tools nano htop tree zip unzip curl wget -y + sudo apt-get install net-tools nano htop iftop tree zip unzip curl wget -y } diff --git a/users/edraft/scripts/default_installation.sh b/users/public/scripts/default_installation.sh similarity index 100% rename from users/edraft/scripts/default_installation.sh rename to users/public/scripts/default_installation.sh diff --git a/users/edraft/scripts/server_installation.sh b/users/vsrv/srcipts/server_installation.sh similarity index 100% rename from users/edraft/scripts/server_installation.sh rename to users/vsrv/srcipts/server_installation.sh