Skip to content

Commit

Permalink
remove redundancies
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazzilb08 committed Feb 5, 2024
1 parent a32586a commit d27d250
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ for volume in $(find / -mount | cut -d' ' -f3); do
if mount | grep -F "$volume" | grep -q "(ro,"; then
continue
fi
if [[ "$volume" =~ ^/(root|home|etc|var|boot|usr|mnt|lib|bin|sbin|lib64|proc|sys|dev|run|tmp|media|srv|opt|snap|app) ]]; then
if [[ "$volume" =~ ^/(root|home|etc|var|boot|usr|mnt|lib|bin|sbin|lib64|proc|sys|dev|run|tmp|media|srv|opt|snap) ]]; then
continue
fi
# Change ownership recursively
chown -R $PUID:$PGID "$volume"
done

chown -R $PUID:$PGID /app

# Run the command as the dockeruser
exec runuser -u dockeruser -g dockeruser -- "$@"

0 comments on commit d27d250

Please sign in to comment.