Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
installer-distro-ximper
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
installer-distro-ximper
Commits
dd540bcf
Project 'ximper/installer-distro-ximper' was moved to 'ximperlinux/installer-distro-ximper'. Please update any links and bookmarks that may still have the old path.
Commit
dd540bcf
authored
Dec 06, 2021
by
Mikhail Efremov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stage3: Don't overwrite default-groups config file
There can be file with another set of groups already. So merge these files.
parent
d67d8b18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
80-setup-user-groups
...-distro-alt-workstation/preinstall.d/80-setup-user-groups
+12
-1
No files found.
installer-distro-alt-workstation/preinstall.d/80-setup-user-groups
View file @
dd540bcf
...
...
@@ -2,8 +2,11 @@
.
install2-init-functions
DF_FILE
=
"
$destdir
/usr/share/install3/default-groups"
mkdir
-p
$destdir
/usr/share/install3/
cat
>
$destdir
/usr/share/install3/default-groups
<<
__EOF__
cat
>
/tmp/default-groups_a
<<
__EOF__
wheel
proc
cdwriter
...
...
@@ -20,3 +23,11 @@ vboxusers
vmusers
users
__EOF__
if
[
-s
"
$DF_FILE
"
]
;
then
sed
's/[[:blank:]]/\n/g'
"
$DF_FILE
"
>
/tmp/default-groups_b
sort
-u
/tmp/default-groups_a /tmp/default-groups_b
>
"
$DF_FILE
"
rm
/tmp/default-groups_a /tmp/default-groups_b
else
mv
/tmp/default-groups_a
"
$DF_FILE
"
fi
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