added entrypoint back

This commit is contained in:
bom 2021-01-05 15:46:17 +01:00
parent 9c2164483b
commit c897b89d1c
2 changed files with 19 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#!/bin/bash
function main() {
file_env POSTGRES_DB
file_env POSTGRES_PASSWORD
file_env POSTGRES_USER
create-pg-pass
# Idle process
while true; do
sleep 500000
done
}
source /usr/local/lib/functions.sh
source /usr/local/lib/pg-functions.sh
main

View file

@ -10,6 +10,7 @@ apt-get -qqy install wget postgresql-client-13 restic > /dev/null;
update-ca-certificates
install -m 0700 /tmp/entrypoint.sh /
install -m 0400 /tmp/functions.sh /usr/local/lib/
install -m 0400 /tmp/pg-functions.sh /usr/local/lib/
install -m 0400 /tmp/file-functions.sh /usr/local/lib/