entrypoint is too specific for dda-backup

This commit is contained in:
jem 2021-01-06 11:30:46 +01:00
parent c897b89d1c
commit 4c2ef91cb4
3 changed files with 1 additions and 21 deletions

View file

@ -1,18 +0,0 @@
#!/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,7 +10,6 @@ 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/

View file

@ -1,6 +1,5 @@
{:package [{:name "restic"}
{:name "postgresql-client-13"}]
:file [{:path "/entrypoint.sh" :mod "700"}
{:path "/usr/local/lib/functions.sh" :mod "400"}
:file [{:path "/usr/local/lib/functions.sh" :mod "400"}
{:path "/usr/local/lib/pg-functions.sh" :mod "400"}
{:path "/usr/local/lib/file-functions.sh" :mod "400"}]}