diff --git a/fixPermissions.bash b/fixPermissions.bash new file mode 100755 index 0000000..181f160 --- /dev/null +++ b/fixPermissions.bash @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +chgrp -R www-data static_gen/ + +fix_dirs() +{ + local IFS=$'\n' + for line in `find static_gen/ -type d`; do + chmod g+s ${line} + done +} + +fix_dirs