Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
ensure we cannot write into the folder before mounting it
Browse files Browse the repository at this point in the history
  • Loading branch information
jfqd committed Oct 9, 2019
1 parent 1a0acd7 commit 440644d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions copy/var/zoneinit/includes/02-repositories.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
if mdata-get vfstab 1>/dev/null 2>&1; then
# ensure we cannot write into the
# folder before mounting it!
mkdir -p /home/gogs/gogs-repositories
chmod 0550 /home/gogs/gogs-repositories
fi

0 comments on commit 440644d

Please sign in to comment.