summaryrefslogtreecommitdiff
path: root/configs/profile/root-image
diff options
context:
space:
mode:
Diffstat (limited to 'configs/profile/root-image')
-rwxr-xr-xconfigs/profile/root-image/root/customize_root_image.sh3
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