mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
updated default credentials
This commit is contained in:
+3
-1
@@ -8,6 +8,8 @@ services:
|
||||
ports:
|
||||
- 5432:5432
|
||||
environment:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_USER: alice
|
||||
POSTGRES_PASSWORD: alice
|
||||
POSTGRES_DB: alice
|
||||
volumes:
|
||||
- ./_data:/var/lib/postgresql/data
|
||||
|
||||
+3
-3
@@ -24,11 +24,11 @@ if [ -z $PGDATABASE ]; then
|
||||
fi
|
||||
|
||||
if [ -z $PGUSER ]; then
|
||||
export PGUSER="postgres"
|
||||
export PGUSER="alice"
|
||||
fi
|
||||
|
||||
if [ -z $PGPASSWORD ]; then
|
||||
export PGPASSWORD="postgres"
|
||||
export PGPASSWORD="alice"
|
||||
fi
|
||||
|
||||
## Commandline opts:
|
||||
@@ -61,7 +61,7 @@ fi
|
||||
|
||||
if [ $OPT_CLEAR -eq 1 ]; then
|
||||
echo "++ clearing database"
|
||||
$PSQL template1 -c "DROP DATABASE $PGDATABASE"
|
||||
$PSQL template1 -c "DROP DATABASE IF EXISTS $PGDATABASE"
|
||||
$PSQL template1 -c "CREATE DATABASE $PGDATABASE"
|
||||
fi
|
||||
######################################################################
|
||||
|
||||
Reference in New Issue
Block a user