diff --git a/nodebb/3.12.2/scripts/init.sh b/nodebb/3.12.2/scripts/init.sh index 5fc65f7bb..5a0bedb89 100644 --- a/nodebb/3.12.2/scripts/init.sh +++ b/nodebb/3.12.2/scripts/init.sh @@ -16,10 +16,14 @@ if [ -f .env ]; then mkdir -p "$NODEBB_ROOT_PATH/uploads" mkdir -p "$NODEBB_ROOT_PATH/config" - chmod -R 1001 "$NODEBB_ROOT_PATH" - chmod -R 1001 "$NODEBB_ROOT_PATH/build" - chmod -R 1001 "$NODEBB_ROOT_PATH/uploads" - chmod -R 1001 "$NODEBB_ROOT_PATH/config" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH" + chmod -R 644 "$NODEBB_ROOT_PATH" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH/build" + chmod -R 644 "$NODEBB_ROOT_PATH/build" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH/uploads" + chmod -R 644 "$NODEBB_ROOT_PATH/uploads" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH/config" + chmod -R 644 "$NODEBB_ROOT_PATH/config" echo "Check Finish." diff --git a/nodebb/3.12.2/scripts/upgrade.sh b/nodebb/3.12.2/scripts/upgrade.sh index 5fc65f7bb..5a0bedb89 100644 --- a/nodebb/3.12.2/scripts/upgrade.sh +++ b/nodebb/3.12.2/scripts/upgrade.sh @@ -16,10 +16,14 @@ if [ -f .env ]; then mkdir -p "$NODEBB_ROOT_PATH/uploads" mkdir -p "$NODEBB_ROOT_PATH/config" - chmod -R 1001 "$NODEBB_ROOT_PATH" - chmod -R 1001 "$NODEBB_ROOT_PATH/build" - chmod -R 1001 "$NODEBB_ROOT_PATH/uploads" - chmod -R 1001 "$NODEBB_ROOT_PATH/config" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH" + chmod -R 644 "$NODEBB_ROOT_PATH" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH/build" + chmod -R 644 "$NODEBB_ROOT_PATH/build" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH/uploads" + chmod -R 644 "$NODEBB_ROOT_PATH/uploads" + chmod -R 1001:1001 "$NODEBB_ROOT_PATH/config" + chmod -R 644 "$NODEBB_ROOT_PATH/config" echo "Check Finish." diff --git a/weblate/5.9.2.1/scripts/init.sh b/weblate/5.9.2.1/scripts/init.sh index 3edba2ab4..c1da5f7de 100644 --- a/weblate/5.9.2.1/scripts/init.sh +++ b/weblate/5.9.2.1/scripts/init.sh @@ -15,9 +15,12 @@ if [ -f .env ]; then mkdir -p "$WEBLATE_ROOT_PATH/data" mkdir -p "$WEBLATE_ROOT_PATH/cache" - chmod -R 1000 "$WEBLATE_ROOT_PATH" - chmod -R 1000 "$WEBLATE_ROOT_PATH/data" - chmod -R 1000 "$WEBLATE_ROOT_PATH/cache" + chmod -R 1000:1000 "$WEBLATE_ROOT_PATH" + chmod -R 644 "$WEBLATE_ROOT_PATH" + chmod -R 1000:1000 "$WEBLATE_ROOT_PATH/data" + chmod -R 644 "$WEBLATE_ROOT_PATH/data" + chmod -R 1000:1000 "$WEBLATE_ROOT_PATH/cache" + chmod -R 644 "$WEBLATE_ROOT_PATH/cache" echo "Check Finish." diff --git a/weblate/5.9.2.1/scripts/upgrade.sh b/weblate/5.9.2.1/scripts/upgrade.sh index 3edba2ab4..c1da5f7de 100644 --- a/weblate/5.9.2.1/scripts/upgrade.sh +++ b/weblate/5.9.2.1/scripts/upgrade.sh @@ -15,9 +15,12 @@ if [ -f .env ]; then mkdir -p "$WEBLATE_ROOT_PATH/data" mkdir -p "$WEBLATE_ROOT_PATH/cache" - chmod -R 1000 "$WEBLATE_ROOT_PATH" - chmod -R 1000 "$WEBLATE_ROOT_PATH/data" - chmod -R 1000 "$WEBLATE_ROOT_PATH/cache" + chmod -R 1000:1000 "$WEBLATE_ROOT_PATH" + chmod -R 644 "$WEBLATE_ROOT_PATH" + chmod -R 1000:1000 "$WEBLATE_ROOT_PATH/data" + chmod -R 644 "$WEBLATE_ROOT_PATH/data" + chmod -R 1000:1000 "$WEBLATE_ROOT_PATH/cache" + chmod -R 644 "$WEBLATE_ROOT_PATH/cache" echo "Check Finish."