This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# IMPORTANT REQUIREMENTS | |
# * Make sure the git-user is allowed to perform operations on behalf of | |
# www-data (without password) by adding this line to `/etc/sudoers`: | |
# `git ALL=(www-data) NOPASSWD: /usr/bin/git, /bin/mkdir` | |
# * Make sure `var/www` is owned by www-data:www-data by executing | |
# `sudo chown -R www-data:www-data /var/www` | |
# * Add www-data to the git-group by executing `sudo usermod -a -G git www-data` | |
# * Make sure this file is executable by executing |
NewerOlder