Skip to content

Commit

Permalink
Update docker_run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
g3rzi authored May 10, 2023
1 parent 0ed175e commit b851b37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ docker run -t -d --rm --name kubiscan_container -e CONF_PATH=/config --network h

# The new container id.
kubiscan_container_id=$( docker ps -a -f "name=kubiscan_container" -q)

# If the argument is empty, enter.
if [ -n "$aws_dir" ];
then
echo "Copying aws folder"
Expand Down Expand Up @@ -70,8 +72,6 @@ then
fi




if [ -n "$cert_array" ];
then
# Copy all the certificates to the container
Expand Down Expand Up @@ -106,6 +106,7 @@ then
docker cp "$certificate_auth" "$kubiscan_container_id":/tmp/"$certificate_auth"
fi
# Giving permissions to /tmp and opt/KubiScan
# The "-f" in chmod will suppress the errors
docker exec -it "$kubiscan_container_id" bash -c "chmod -fR 777 /tmp /opt/kubiscan /home/kubiscan"
docker exec -it --user kubiscan "$kubiscan_container_id" bash

0 comments on commit b851b37

Please sign in to comment.