Added create-pg-pass to backup entrypoints

This commit is contained in:
Clemens Geibel 2021-07-16 15:59:45 +02:00
parent b88c627102
commit 2a3755c0b0
2 changed files with 12 additions and 0 deletions

View file

@ -1,6 +1,11 @@
#!/bin/bash
function main() {
file_env POSTGRES_DB
file_env POSTGRES_PASSWORD
file_env POSTGRES_USER
create-pg-pass
while true; do
sleep 1m

View file

@ -1,8 +1,15 @@
#!/bin/bash
function main() {
file_env POSTGRES_DB
file_env POSTGRES_PASSWORD
file_env POSTGRES_USER
create-pg-pass
/usr/local/bin/backup.sh
}
source /usr/local/lib/functions.sh
source /usr/local/lib/pg-functions.sh
main