Last active
December 11, 2015 15:19
-
-
Save mvidner/4620212 to your computer and use it in GitHub Desktop.
Testing FATE#312733 - hostname and nameservers via yast cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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