Merge pull request #227 from solomoncyj/patch-2

adding docker container check
This commit is contained in:
Chris Titus 2022-02-14 10:57:51 -06:00 committed by GitHub
commit 44fb72cfdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -16,13 +16,17 @@ echo -ne "
-------------------------------------------------------------------------
Scripts are in directory named ArchTitus
"
#!/bin/bash
if awk -F/ '$2 == "docker"' /proc/self/cgroup | read; then
echo -ne "docker container found script can't install (at the moment)"
else
bash startup.sh
source $SCRIPT_DIR/setup.conf
bash 0-preinstall.sh
arch-chroot /mnt /root/ArchTitus/1-setup.sh
arch-chroot /mnt /usr/bin/runuser -u $USERNAME -- /home/$USERNAME/ArchTitus/2-user.sh
arch-chroot /mnt /root/ArchTitus/3-post-setup.sh
fi
echo -ne "
-------------------------------------------------------------------------
█████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗