Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
718a50b9
Commit
718a50b9
authored
Oct 10, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
91-relname
features.in/relname/stage2/image-scripts.d/91-relname
+8
-3
No files found.
features.in/relname/stage2/image-scripts.d/91-relname
View file @
718a50b9
#!/bin/sh -ef
u
#!/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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment