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.
This commit is contained in:
parent
78684bfef3
commit
718a50b9d0
@ -1,9 +1,14 @@
|
||||
#!/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
|
||||
|
Loading…
Reference in New Issue
Block a user