Introduced second parameter to setup_chroot.sh to copy extra binaries

This commit is contained in:
Daniel Winzen
2019-02-11 07:16:12 +01:00
parent b1bf9eb42b
commit 4ff2fae6a5

View File

@ -155,6 +155,12 @@ DIRECTORIES_GENERAL=(
### test variables/parameters
test "$CHROOT_DIRECTORY" != ""
if [ "$2" != "" ]; then
CHROOT_BINARY $2
echo "copied extra binary $2";
exit 0;
fi
### init chroot directory
mkdir -p $CHROOT_DIRECTORY
chown root:www-data $CHROOT_DIRECTORY