summaryrefslogtreecommitdiff
path: root/configs/profile/airootfs/root
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2017-09-25 02:58:07 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2019-10-19 12:11:28 -0400
commitdb32f78877cfa97e26b82e2bc2f5b66595e41646 (patch)
treea034552c33fbcc4f37d71912c5bd306a72b83327 /configs/profile/airootfs/root
parent761f5b0f3178bad3bd8d245a5237a07cd9c02be5 (diff)
allow in-tree build without parabolaiso package
Diffstat (limited to 'configs/profile/airootfs/root')
-rwxr-xr-xconfigs/profile/airootfs/root/customize_airootfs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/configs/profile/airootfs/root/customize_airootfs.sh b/configs/profile/airootfs/root/customize_airootfs.sh
index 505a571..900cc9b 100755
--- a/configs/profile/airootfs/root/customize_airootfs.sh
+++ b/configs/profile/airootfs/root/customize_airootfs.sh
@@ -7,10 +7,11 @@ 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/
chmod 700 /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
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config