Skip to content

Commit

Permalink
docker: fix permissions before writing anything.
Browse files Browse the repository at this point in the history
  • Loading branch information
koush authored Nov 17, 2024
1 parent 2ec6760 commit 4ce4c5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install/docker/install-scrypted-docker-compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ rm -rf $SCRYPTED_HOME/package-lock.json
set -e
cd $SCRYPTED_HOME

echo "Setting permissions on $SCRYPTED_HOME"
chown -R $SERVICE_USER $SCRYPTED_HOME || true

readyn "Install Docker?"

if [ "$yn" == "y" ]
Expand Down Expand Up @@ -103,9 +106,6 @@ then
sed -i 's/'#' - apparmor:unconfined/ - apparmor:unconfined/g' $DOCKER_COMPOSE_YML
fi

echo "Setting permissions on $SCRYPTED_HOME"
chown -R $SERVICE_USER $SCRYPTED_HOME || true

set +e

echo "docker compose down"
Expand Down

0 comments on commit 4ce4c5a

Please sign in to comment.