chore(deps): update docmost/docmost docker tag to v0.70.1 (localApps) (#4382)
This commit is contained in:
10
apps/docmost/0.70.1/scripts/init.sh
Normal file
10
apps/docmost/0.70.1/scripts/init.sh
Normal file
@@ -0,0 +1,10 @@
|
||||
NEW_SECRET=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | head -c 32)
|
||||
if grep -q "APP_SECRET=" .env; then
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
sed -i '' "s/APP_SECRET=.*/APP_SECRET=$NEW_SECRET/" .env
|
||||
else
|
||||
sed -i "s/APP_SECRET=.*/APP_SECRET=$NEW_SECRET/" .env
|
||||
fi
|
||||
else
|
||||
echo "APP_SECRET=$NEW_SECRET" >> .env
|
||||
fi
|
||||
Reference in New Issue
Block a user