Skip to content

Instantly share code, notes, and snippets.

@ottosmops
ottosmops / post-merge
Created August 21, 2023 05:33 — forked from YaroslavShapoval/post-merge
Post-update git hook to set right owner and permissions for changed files
#!/bin/sh
# default owner user
OWNER="www-data:www-data"
# changed file permission
PERMISSION="664"
# web repository directory
REPO_DIR="/var/www/sitename"