From: Chris Koeritz Date: Tue, 13 Mar 2018 15:35:55 +0000 (-0400) Subject: adding recursive mkdir flag to precreate hierarchy X-Git-Tag: 2.140.110^2~12 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=4b549afaa11ba1f40775392a51fd5c3a6e49ac25;p=feisty_meow.git adding recursive mkdir flag to precreate hierarchy --- diff --git a/scripts/site_avenger/shared_site_mgr.sh b/scripts/site_avenger/shared_site_mgr.sh index 50ca50da..4effce3c 100644 --- a/scripts/site_avenger/shared_site_mgr.sh +++ b/scripts/site_avenger/shared_site_mgr.sh @@ -147,14 +147,14 @@ function fix_site_perms() fi if [ ! -d "$site_dir/logs" ]; then - mkdir "$site_dir/logs" + mkdir -p "$site_dir/logs" test_or_die "Creating logs directory" fi chmod -R g+w "$site_dir/logs" test_or_die "Enabling group write on site's Logs directory" if [ ! -d "$site_dir/tmp" ]; then - mkdir "$site_dir/tmp" + mkdir -p "$site_dir/tmp" test_or_die "Creating tmp directory" fi chmod -R g+w "$site_dir/tmp"