diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2017-09-25 02:58:07 -0400 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2017-11-17 18:16:07 -0500 |
commit | 51e86db625adefad1541438b8226c1c8ab170745 (patch) | |
tree | a6d32bd99139b1f8ba6ea3d028fc37c76c0c7b51 /configs/profile/root-image/root | |
parent | cfb9207ead40dc9b12e37578fab2641f213b3640 (diff) |
allow in-tree build without parabolaiso package
Diffstat (limited to 'configs/profile/root-image/root')
-rwxr-xr-x | configs/profile/root-image/root/customize_root_image.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/profile/root-image/root/customize_root_image.sh b/configs/profile/root-image/root/customize_root_image.sh index 9c980f1..2c677a6 100755 --- a/configs/profile/root-image/root/customize_root_image.sh +++ b/configs/profile/root-image/root/customize_root_image.sh @@ -7,9 +7,10 @@ locale-gen ln -sf /usr/share/zoneinfo/UTC /etc/localtime -usermod -s /usr/bin/zsh root +usermod -s /usr/bin/zsh root 2> /dev/null cp -aT /etc/skel/ /root/ +[ -n "$(id parabola 2> /dev/null)" ] && userdel -r parabola 2> /dev/null useradd -m -p "" -g users -G "adm,audio,floppy,log,network,rfkill,scanner,storage,optical,power,wheel" -s /usr/bin/zsh parabola chmod 750 /etc/sudoers.d |