Added create-pg-pass to backup entrypoints
This commit is contained in:
parent
b88c627102
commit
2a3755c0b0
2 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
file_env POSTGRES_DB
|
||||||
|
file_env POSTGRES_PASSWORD
|
||||||
|
file_env POSTGRES_USER
|
||||||
|
|
||||||
|
create-pg-pass
|
||||||
|
|
||||||
while true; do
|
while true; do
|
||||||
sleep 1m
|
sleep 1m
|
||||||
|
|
|
@ -1,8 +1,15 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
|
file_env POSTGRES_DB
|
||||||
|
file_env POSTGRES_PASSWORD
|
||||||
|
file_env POSTGRES_USER
|
||||||
|
|
||||||
|
create-pg-pass
|
||||||
|
|
||||||
/usr/local/bin/backup.sh
|
/usr/local/bin/backup.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
source /usr/local/lib/functions.sh
|
source /usr/local/lib/functions.sh
|
||||||
|
source /usr/local/lib/pg-functions.sh
|
||||||
main
|
main
|
||||||
|
|
Reference in a new issue