2-create.sh: Fix perms on out/ dir

This commit is contained in:
Albert S. 2022-06-25 22:37:57 +02:00
parent 5cf7a53a9d
commit f437fa5f67
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni

2
build
Vedi File

@ -7,7 +7,7 @@ SPAWN="systemd-nspawn -M gentoolooqsbuilder -D gentoo --bind=$(realpath ./out):/
SETUPSCRIPT="/scripts/3-setup-gentoo.sh" SETUPSCRIPT="/scripts/3-setup-gentoo.sh"
BUILDSCRIPT="/scripts/4-build-looqs.sh" BUILDSCRIPT="/scripts/4-build-looqs.sh"
./scripts/1-create.sh ./scripts/1-create.sh
sudo ./scripts/2-create.sh sudo ./scripts/2-create.sh `whoami`
sudo ${SPAWN} /${SETUPSCRIPT} sudo ${SPAWN} /${SETUPSCRIPT}
sudo ${SPAWN} su - builder -c /${BUILDSCRIPT} sudo ${SPAWN} su - builder -c /${BUILDSCRIPT}
./scripts/5-bundle.sh ./scripts/5-bundle.sh

Vedi File

@ -6,4 +6,5 @@ mkdir out
mkdir out/lib mkdir out/lib
mkdir out/bin mkdir out/bin
chmod -R 755 out chmod -R 755 out
chown -R "$1" out
tar xfp hardened.tar.xz -C gentoo tar xfp hardened.tar.xz -C gentoo