appstore-1panel/apps/siyuan/3.1.6/scripts/init.sh
github-action update-app-version ce92c6df2a Update app version [skip ci]
2024-09-10 04:48:49 +00:00

21 lines
328 B
Bash

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