iankelling.org
/
git
/
automated-distro-installer
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes for trisquel 9
[automated-distro-installer]
/
fai
/
config
/
scripts
/
GRUB_PC
/
11-iank
diff --git
a/fai/config/scripts/GRUB_PC/11-iank
b/fai/config/scripts/GRUB_PC/11-iank
index 8f2c7604e9bfd6b1e150c9cbe33fc7c0d3b01b56..9f0c56e19acff9db9037a048abdd01c125564950 100755
(executable)
--- a/
fai/config/scripts/GRUB_PC/11-iank
+++ b/
fai/config/scripts/GRUB_PC/11-iank
@@
-87,7
+87,11
@@
chmod 700 /root/.ssh
dpkg-reconfigure -fnoninteractive resolvconf
# default jessie groups + kvm, systemd-journal, adm
dpkg-reconfigure -fnoninteractive resolvconf
# default jessie groups + kvm, systemd-journal, adm
-usermod -aG adm,cdrom,floppy,sudo,audio,dip,video,plugdev,netdev iank
+for g in adm cdrom floppy sudo audio dip video plugdev netdev; do
+ if getent gropu $g >/dev/null; then
+ usermod -aG $g iank
+ fi
+done
if getent group systemd-journal >/dev/null; then
usermod -aG systemd-journal iank
if getent group systemd-journal >/dev/null; then
usermod -aG systemd-journal iank