diff --git a/runs/atreboot.sh b/runs/atreboot.sh index bc71f8d14..1fd52e656 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"