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
|
# 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
|
if [ -n "$GLOBAL_VERBOSE" ]; then
|
||||||
echo "** Change /etc/altlinux-release contents to 'RELNAME'"
|
echo "** Change /etc/altlinux-release contents to the release name" >&2
|
||||||
fi >&2
|
fi
|
||||||
|
|
||||||
SCRIPT="/usr/share/install2/postinstall.d/91-relname"
|
SCRIPT="/usr/share/install2/postinstall.d/91-relname"
|
||||||
cat > "$SCRIPT" << EOF
|
cat > "$SCRIPT" << EOF
|
||||||
|
Loading…
Reference in New Issue
Block a user