2025-01-09 12:40:50 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
if [ -f .env ]; then
|
|
|
|
|
source .env
|
|
|
|
|
|
2025-01-09 15:40:23 +08:00
|
|
|
mkdir -p "$WEBLATE_ROOT_PATH"
|
|
|
|
|
mkdir -p "$WEBLATE_ROOT_PATH/data"
|
|
|
|
|
mkdir -p "$WEBLATE_ROOT_PATH/cache"
|
|
|
|
|
|
2025-01-09 16:15:55 +08:00
|
|
|
chown -R 1000:1000 "$WEBLATE_ROOT_PATH"
|
|
|
|
|
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/data"
|
|
|
|
|
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/cache"
|
2025-01-09 15:40:23 +08:00
|
|
|
|
2025-01-09 12:40:50 +08:00
|
|
|
echo "Check Finish."
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
echo "Error: .env file not found."
|
|
|
|
|
fi
|