From 31cc01779ab78adc9c83c78c420936a100a4743c Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 5 Aug 2019 13:34:54 +0200 Subject: [PATCH] server_optimize --- server_optimize.sh | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/server_optimize.sh b/server_optimize.sh index 17bbf35..379f376 100755 --- a/server_optimize.sh +++ b/server_optimize.sh @@ -14,24 +14,6 @@ else fi echo "Als root Angemeldet" -if [ -z "${hostname}" ]; then - if [ -f "/usr/bin/systemctl" ]; then - if [ -f "/etc/hostname.example" ]; then - hostname="$(cat /etc/hostname.example)" - else - cp /etc/hostname /etc/hostname.example - hostname="$(cat /etc/hostname)" - fi - else - if ! [ -f "/etc/conf.d/hostname.example" ]; then - cp /etc/conf.d/hostname /etc/conf.d/hostname.example - fi - temphostname="$(cat /etc/conf.d/hostname.example)" - #hostname="${temphostname%?}" - hostname="${temphostname:10:$((${#temphostname})) - 11}" - fi -fi - function makesshsecure() { #sshd -T |grep permitrootlogin