Update installer.sh

Added Hostname
This commit is contained in:
b.waal 2024-08-03 14:43:19 +02:00
parent 8cff31acb5
commit 28336b2a5b

View File

@ -18,7 +18,6 @@ BRANCH=main
GIT=https://git.ictcorpnet.com/b.waal/$REPO/raw
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
@ -111,6 +110,8 @@ echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
hostnamectl set-hostname $HOSTNAME
##-------------##
# Installer #