chore(deps): update jiangrui1994/cloudsaver docker tag to v0.6.5 (#3534)
This commit is contained in:
17
apps/cloudsaver/0.6.5/scripts/init.sh
Normal file
17
apps/cloudsaver/0.6.5/scripts/init.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
CONFIG_DIR="$CLOUDSAVER_ROOT_PATH/config"
|
||||
mkdir -p "$CONFIG_DIR"
|
||||
|
||||
CONFIG_FILE="$CONFIG_DIR/env"
|
||||
cp ./config/env.example $CONFIG_FILE
|
||||
sed -i "s/JWT_SECRET=.*/JWT_SECRET=$JWT_SECRET/" $CONFIG_FILE
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
Reference in New Issue
Block a user