1
0
mirror of https://gitlink.org.cn/pooneyy/1Panel-Appstore.git synced 2026-04-24 10:41:42 +08:00
1Panel-Appstore/apps/weblate/5.17.0.1/scripts/init.sh

19 lines
364 B
Bash

#!/bin/bash
if [ -f .env ]; then
source .env
mkdir -p "$WEBLATE_ROOT_PATH"
mkdir -p "$WEBLATE_ROOT_PATH/data"
mkdir -p "$WEBLATE_ROOT_PATH/cache"
chown -R 1000:1000 "$WEBLATE_ROOT_PATH"
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/data"
chown -R 1000:1000 "$WEBLATE_ROOT_PATH/cache"
echo "Check Finish."
else
echo "Error: .env file not found."
fi