pub / stagit-scripts

Building src.jayvii.de with stagit
git clone https://src.jayvii.de/pub/stagit-scripts.git
Home | Log | Files | Exports | Refs | README | RSS

commit 126968005a6ee8d200507c6ad035a287160f5c13
parent 3c7bc6eb09e59d74a4e1eaa64d33a10a51de692e
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat,  4 May 2024 16:43:56 +0200

Enforce file permission setting

When new repositories are created by this script, they should modifiable by both the user (git) and group (www-data)

Diffstat:
Mbin/git_create_repo.sh | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/bin/git_create_repo.sh b/bin/git_create_repo.sh @@ -73,5 +73,9 @@ echo "exec ~/bin/git_post_push.sh \"${1}\" \"${2}\" \"${3}\"" >> "$PUH_FILE" # make branch cloneable via http(s) git update-server-info +# enforce file permissions +chmod 770 -R "${1}/${2}/${3}" +chmod 770 -R "${1}/${2}/${3}.git" + # User output echo "The repository is available via git clone ${URL}/${2}/${3}.git"