Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Check if os is linux before running chcon
Browse files Browse the repository at this point in the history
  • Loading branch information
whatwareweb authored and JosiasAurel committed Jan 26, 2024
1 parent 4596d52 commit cf95bd0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build-with-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ fi


docker build ./docker | tee ./dockerBuildLog.txt
chcon -R -t container_file_t ./

if [[ $OSTYPE == *"linux"* ]]; then
chcon -R -t container_file_t ./
fi

docker run -it --rm --volume ./:/root/spade $(docker images | awk '{print $3}' | awk 'NR==2')

0 comments on commit cf95bd0

Please sign in to comment.