From 2538127fef605fa6fa883f32ede7bab31a62ca9a Mon Sep 17 00:00:00 2001 From: Lutz Bender Date: Wed, 2 Oct 2024 08:02:07 +0200 Subject: [PATCH] fix setting file permissions --- runs/atreboot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runs/atreboot.sh b/runs/atreboot.sh index bc71f8d14a..1fd52e656b 100755 --- a/runs/atreboot.sh +++ b/runs/atreboot.sh @@ -398,8 +398,8 @@ chmod 666 "$LOGFILE" fi # set restore dir permissions to allow file upload for apache - sudo chgrp www-data "${OPENWBBASEDIR}/data/restore" "${OPENWBBASEDIR}/data/restore/"* "${OPENWBBASEDIR}/data/data_migration" "${OPENWBBASEDIR}/data/data_migration/"* - sudo chmod g+w "${OPENWBBASEDIR}/data/restore" "${OPENWBBASEDIR}/data/restore/"* "${OPENWBBASEDIR}/data/data_migration" "${OPENWBBASEDIR}/data/data_migration/"* + sudo chgrp -R www-data "${OPENWBBASEDIR}/data/restore/." "${OPENWBBASEDIR}/data/data_migration/." + sudo chmod -R g+w "${OPENWBBASEDIR}/data/restore/." "${OPENWBBASEDIR}/data/data_migration/." # cleanup some folders folder="${OPENWBBASEDIR}/data/data_migration/var"