Commit 718a50b9 authored by Michael Shigorin's avatar Michael Shigorin

relname: tweak the fix/diagnostics

The culprit would be that $RELNAME isn't really set there ($GLOBAL_RELNAME is), and sh -u will treat that as error.
parent 78684bfe
#!/bin/sh -efu
#!/bin/sh -ef
# create a postinstall script to perform the change afterwards
if [ -z "$GLOBAL_RELNAME" ]; then
echo "** warning: relname feature enabled but RELNAME not set" >&2
exit 0
fi
if [ -n "$GLOBAL_VERBOSE" ]; then
echo "** Change /etc/altlinux-release contents to 'RELNAME'"
fi >&2
echo "** Change /etc/altlinux-release contents to the release name" >&2
fi
SCRIPT="/usr/share/install2/postinstall.d/91-relname"
cat > "$SCRIPT" << EOF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment