appstore-1panel/apps/speedtest-tracker/0.18.7/scripts/init.sh

19 lines
285 B
Bash
Raw Normal View History

#!/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