Skip to content

Commit

Permalink
Permission fixup only when running as root
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtore authored and dtcooper committed Sep 17, 2024
1 parent bf8e934 commit 0e32280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ case $ARCHITECTURE in
;;
esac

# Perm fixup. Not needed on macOS, but is on Linux
chown -R "$PERMFIX_UID:$PERMFIX_GID" /mnt/raspotify 2>/dev/null || true
# Fix broken permissions resulting from running the Docker container as root.
[ $(id -u) -eq 0 ] && chown -R "$PERMFIX_UID:$PERMFIX_GID" /mnt/raspotify 2>/dev/null

BUILD_TIME=$(duration_since "$START_BUILDS")

Expand Down

0 comments on commit 0e32280

Please sign in to comment.