Inicjalizacja repozytorium po uporządkowaniu Gitea; dodanie gitignore
This commit is contained in:
11
gitea/init-env.sh
Normal file
11
gitea/init-env.sh
Normal file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f .env ]; then
|
||||
DB_PASS=$(openssl rand -hex 16)
|
||||
echo "Creating .env..."
|
||||
echo "DB_PASSWORD=$DB_PASS" > .env
|
||||
echo "GITEA_DOMAIN=gitea.example.com" >> .env
|
||||
echo "GITEA_URL=https://gitea.example.com/" >> .env
|
||||
echo "RUNNER_TOKEN=" >> .env
|
||||
echo "Update GITEA_DOMAIN and GITEA_URL in .env"
|
||||
fi
|
||||
Reference in New Issue
Block a user