Skip to content

Commit

Permalink
Move setup.sh into scripts directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Actionb committed Aug 1, 2024
1 parent d17e886 commit 2a66cd2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run setup
run: sh setup.sh
run: sh scripts/setup.sh
env:
# Provide environment variables so setup.sh does not ask for them:
DB_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion MIZDB/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
with open(BASE_DIR / ".secrets") as f:
secrets = yaml.load(f, yaml.Loader)
except FileNotFoundError as e:
raise FileNotFoundError(".secrets file not found.\nHINT: run setup.sh") from e
raise FileNotFoundError(".secrets file not found.\nHINT: run scripts/setup.sh") from e

SECRET_KEY = secrets["SECRET_KEY"]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ sh get-mizdb.sh database_backup
git clone https://github.com/Actionb/MIZDB
cd MIZDB
# Konfigurieren und Docker Umgebung vorbereiten:
sh setup.sh
sh scripts/setup.sh
# Docker Container erstellen und starten:
docker compose up -d
# Statische Dateien sammeln:
Expand Down Expand Up @@ -289,7 +289,7 @@ git clone https://github.com/Actionb/MIZDB .
# Virtuelle Umgebung erstellen und aktivieren:
python3 -m venv venv && source venv/bin/activate
# MIZDB einrichten:
sh setup.sh
sh scripts/setup.sh
```

Das Script `setup.sh` fragt nach einigen Daten für die Applikation und erstellt
Expand Down
2 changes: 1 addition & 1 deletion dbentry/site/templates/help/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2 id="manuell">Manuell</h2>
git clone https://github.com/Actionb/MIZDB
cd MIZDB
# Konfigurieren und Docker Umgebung vorbereiten:
sh setup.sh
sh scripts/setup.sh
# Docker Container erstellen und starten:
docker compose up -d
# Statische Dateien sammeln:
Expand Down
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sudo apt install -y git
git clone https://github.com/Actionb/MIZDB
cd MIZDB
# Konfigurieren und Docker Umgebung vorbereiten:
sh setup.sh
sh scripts/setup.sh
# Docker Container erstellen und starten:
docker compose up -d
# Statische Dateien sammeln:
Expand Down
2 changes: 1 addition & 1 deletion scripts/get-mizdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ setup_mizdb() {
sudo apt install -y -qq git
git clone https://github.com/Actionb/MIZDB MIZDB
cd MIZDB
DB_PASSWORD=$password ALLOWED_HOSTS=$hosts /bin/sh setup.sh
DB_PASSWORD=$password ALLOWED_HOSTS=$hosts /bin/sh scripts/setup.sh
printf "\nErzeuge Docker Container...\n\n"
sudo docker compose up -d
printf "\nContainer erstellt!\n\n"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
with open(BASE_DIR / ".secrets") as f:
secrets = yaml.load(f, yaml.Loader)
except FileNotFoundError as e:
raise FileNotFoundError(".secrets file not found.\nHINT: run setup.sh") from e
raise FileNotFoundError(".secrets file not found.\nHINT: run scripts/setup.sh") from e

SECRET_KEY = 'abcdefghi'

Expand Down

0 comments on commit 2a66cd2

Please sign in to comment.