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> | 2019-10-19 12:11:28 -0400 |
commit | db32f78877cfa97e26b82e2bc2f5b66595e41646 (patch) | |
tree | a034552c33fbcc4f37d71912c5bd306a72b83327 /configs/profile/airootfs/root | |
parent | 761f5b0f3178bad3bd8d245a5237a07cd9c02be5 (diff) |
allow in-tree build without parabolaiso package
Diffstat (limited to 'configs/profile/airootfs/root')
-rwxr-xr-x | configs/profile/airootfs/root/customize_airootfs.sh | 3 |
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 |