Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Testing FATE#312733 - hostname and nameservers via yast cli
#! /bin/sh
echo "1..2"
YASTCLI=/sbin/yast2
#####
newhn=atestinghostname
$YASTCLI dns edit hostname=$newhn
# TODO steal the API from git.git
if ! grep $newhn /etc/HOSTNAME > /dev/null; then
echo -n "not "
fi
echo "ok 1 persistent hostname"
if ! hostname | grep $newhn > /dev/null; then
echo -n "not "
fi
echo "ok 2 actual hostname"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.