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
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
Anton Palgunov
mkimage-profiles
Commits
f30d929a
Commit
f30d929a
authored
Jul 15, 2020
by
Alexey Sheplyakov
Committed by
Anton Midyukov
Aug 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
install2, rootfs: Create groups necessary for joining a (AD) domain
parent
89fd6019
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
86-all-groups
...es.in/build-distro/install2/image-scripts.d/86-all-groups
+24
-0
30-all-groups
...ures.in/build-distro/rootfs/image-scripts.d/30-all-groups
+13
-0
No files found.
features.in/build-distro/install2/image-scripts.d/86-all-groups
0 → 100755
View file @
f30d929a
#!/bin/sh -efu
### Ensure that all the necesary system groups exist
SCRIPT
=
"/usr/share/install2/postinstall.d/86-all-groups"
cat
>
"
$SCRIPT
"
<<
EOF
#!/bin/sh -efu
. install2-init-functions
# don't override the script start message on the same line
echo "Ensuring that all the necesary system groups exist"
echo '/usr/share/install3/default-groups
/etc/alterator/auth/user-groups
/etc/alterator/auth/admin-groups' \
| while read LIST; do
[ -s "\
$destdir
\
$LIST
" ] || continue
for GROUP in \
$(
cat
"
\$
destdir
\$
LIST"
)
; do
exec_chroot groupadd -r "\
$GROUP
" &>/dev/null ||:
done
done
EOF
chmod
+x
"
$SCRIPT
"
features.in/build-distro/rootfs/image-scripts.d/30-all-groups
0 → 100755
View file @
f30d929a
#!/bin/sh -eu
# ensure that all the necesary system groups exist
echo
'/usr/share/install3/default-groups
/etc/alterator/auth/user-groups
/etc/alterator/auth/admin-groups'
\
|
while
read
LIST
;
do
[
-s
"
$LIST
"
]
||
continue
for
GROUP
in
$(
cat
"
$LIST
"
)
;
do
groupadd
-r
"
$GROUP
"
&>/dev/null
||
:
done
done
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