appstore-1panel/apps/speedtest-tracker/0.19.0/scripts/init.sh
Meng Sen 6c18fe434d 提交合并
Signed-off-by: 萌森 <qyg2297248353@163.com>
2024-07-17 16:30:13 +08:00

19 lines
285 B
Bash

#!/bin/bash
if [[ -f .env ]]; then
source .env
keys
mkdir -p "$SP_TRACKER_ROOT_PATH"
mkdir -p "$SP_TRACKER_ROOT_PATH/conf"
mkdir -p "$SP_TRACKER_ROOT_PATH/conf/keys"
chmod $PUID:$PGID -R "$SP_TRACKER_ROOT_PATH"
echo "Check Finish."
else
echo ".env not found."
fi