Skip to content

Instantly share code, notes, and snippets.

@mvidner
Last active December 11, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvidner/4620212 to your computer and use it in GitHub Desktop.
Save mvidner/4620212 to your computer and use it in GitHub Desktop.
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