Remove deprecated shell scripts: compose.sh and pg_dumper.sh
This commit is contained in:
parent
65cc263f3b
commit
8504fcd1cc
2 changed files with 0 additions and 27 deletions
|
|
@ -1,4 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Run docker compose with tee to show output and save to file
|
|
||||||
docker compose up -d --build |& tee build_logs.txt
|
|
||||||
23
pg_dumper.sh
23
pg_dumper.sh
|
|
@ -1,23 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Set the necessary environment variables
|
|
||||||
export PGHOST="localhost"
|
|
||||||
export PGPORT="5432"
|
|
||||||
export PGDATABASE="postgres"
|
|
||||||
export PGUSER="postgres"
|
|
||||||
export PGPASSWORD="rootpost"
|
|
||||||
|
|
||||||
# Call pg_dump.exe to generate the SQL file
|
|
||||||
"C:/Program Files/PostgreSQL/16/bin/pg_dump.exe" -f "./apps/db/initial/1_init.sql" --schema-only
|
|
||||||
|
|
||||||
"C:/Program Files/PostgreSQL/16/bin/pg_dump.exe" -f "./apps/db/initial/2_data.sql" --data-only -t prezziario2 -t banners -t etichette -t flags -t banlist -t testi_e_stringhe -t temp_tokens
|
|
||||||
|
|
||||||
# Check if the pg_dump command was successful
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
echo "SQL file generated successfully."
|
|
||||||
else
|
|
||||||
echo "Failed to generate SQL file."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Wait for user keypress
|
|
||||||
read -n 1 -s -r -p "Press any key to exit..."
|
|
||||||
Loading…
Add table
Reference in a new issue