server_optimize
This commit is contained in:
parent
def8040230
commit
31cc01779a
1 changed files with 0 additions and 18 deletions
|
@ -14,24 +14,6 @@ else
|
||||||
fi
|
fi
|
||||||
echo "Als root Angemeldet"
|
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() {
|
function makesshsecure() {
|
||||||
|
|
||||||
#sshd -T |grep permitrootlogin
|
#sshd -T |grep permitrootlogin
|
||||||
|
|
Loading…
Reference in a new issue