From 5e48571fda8188dab0983f949f1a18280ea12cdd Mon Sep 17 00:00:00 2001 From: Stefan Dresselhaus Date: Wed, 24 Aug 2022 17:12:09 +0200 Subject: [PATCH] added helper for deployment --- fixPermissions.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 fixPermissions.bash 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