发布应用 NodeBB

Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
This commit is contained in:
Meng Sen
2025-01-09 15:40:23 +08:00
parent 1cc4aa97f7
commit 2fe1bda8d1
6 changed files with 52 additions and 1 deletions

View File

@@ -10,6 +10,17 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
# setup-2 update dir permissions
mkdir -p "$WEBLATE_ROOT_PATH"
mkdir -p "$WEBLATE_ROOT_PATH/build"
mkdir -p "$WEBLATE_ROOT_PATH/uploads"
mkdir -p "$WEBLATE_ROOT_PATH/config"
chmod -R 1001 "$WEBLATE_ROOT_PATH"
chmod -R 1001 "$WEBLATE_ROOT_PATH/build"
chmod -R 1001 "$WEBLATE_ROOT_PATH/uploads"
chmod -R 1001 "$WEBLATE_ROOT_PATH/config"
echo "Check Finish."
else

View File

@@ -10,6 +10,17 @@ if [ -f .env ]; then
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
# setup-2 update dir permissions
mkdir -p "$WEBLATE_ROOT_PATH"
mkdir -p "$WEBLATE_ROOT_PATH/build"
mkdir -p "$WEBLATE_ROOT_PATH/uploads"
mkdir -p "$WEBLATE_ROOT_PATH/config"
chmod -R 1001 "$WEBLATE_ROOT_PATH"
chmod -R 1001 "$WEBLATE_ROOT_PATH/build"
chmod -R 1001 "$WEBLATE_ROOT_PATH/uploads"
chmod -R 1001 "$WEBLATE_ROOT_PATH/config"
echo "Check Finish."
else