done
test -d "$ROOTDIR" || {
- echo "Root-directory '$ROOTDIR' does not exist or is invalid"
+ echo "Root-directory '$ROOTDIR' does not exist or is invalid" >&2
exit 1
}
}
elif test -e /etc/debian_version; then
set -- $(cat /etc/debian_version)
DISTRIBUTION=deb$1
+ elif test -e /etc/SuSE-release; then
+ set -- $(cat /etc/SuSE-release)
+ DISTRIBUTION=suse$3
else
- echo "Can not determine distribution; please specify it manually"
- echo "with the '-d' option"
+ echo \
+"Can not determine distribution; please specify it manually
+with the '-d' option" >&2
exit 1
fi >&2
}
{
test -z "$1" || _renameVserverCfg
test ! -d "$VDIR" -a ! -d "$SETUP_CONFDIR" || {
- echo "vserver-topdirectory and/or configuration exist already; "
- echo "please try to use '--force', or remove them manually"
+ echo \
+"vserver-topdirectory '$VDIR' and/or configuration at '$SETUP_CONFDIR'
+exist already; please try to use '--force', or remove them manually"
+>&2
exit 1
} >&2