From 0b64d3ff8ee12c876204e544362b90836b75a649 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 10 Mar 2017 15:31:04 -0300 Subject: Set hostname at kvmx_up --- provision/desktop-basic | 9 --------- provision/development | 9 --------- 2 files changed, 18 deletions(-) (limited to 'provision') diff --git a/provision/desktop-basic b/provision/desktop-basic index d711383..dd5531f 100755 --- a/provision/desktop-basic +++ b/provision/desktop-basic @@ -26,15 +26,6 @@ DOMAIN="$2" MIRROR="$3" APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y" -# Set hostname -echo "$HOSTNAME.$DOMAIN" | sudo tee /etc/hostname > /dev/null -sudo hostname $HOSTNAME.$DOMAIN - -# Set hosts entry -if ! grep -q "^127.0.0.1 $HOSTNAME.$DOMAIN $HOSTNAME$" /etc/hosts; then - echo "127.0.0.1 $HOSTNAME.$DOMAIN $HOSTNAME" | sudo tee -a /etc/hosts > /dev/null -fi - # Configure keyboard cat <<-EOF | sudo tee /etc/default/keyboard > /dev/null # KEYBOARD CONFIGURATION FILE diff --git a/provision/development b/provision/development index fa7a323..e14d0ac 100755 --- a/provision/development +++ b/provision/development @@ -26,15 +26,6 @@ DOMAIN="$2" MIRROR="$3" APT_INSTALL="sudo LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get install -y" -# Set hostname -echo "$HOSTNAME.$DOMAIN" | sudo tee /etc/hostname > /dev/null -sudo hostname $HOSTNAME.$DOMAIN - -# Set hosts entry -if ! grep -q "^127.0.0.1 $HOSTNAME.$DOMAIN $HOSTNAME$" /etc/hosts; then - echo "127.0.0.1 $HOSTNAME.$DOMAIN $HOSTNAME" | sudo tee -a /etc/hosts > /dev/null -fi - # Dependencies sudo sed -i -e "s|main$|main contrib non-free|g" /etc/apt/sources.list sudo apt-get update -- cgit v1.2.3