c4k-taiga/infrastructure/backup/image/resources/install.sh

22 lines
542 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2023-12-21 18:56:34 +00:00
set -exo pipefail
2023-11-03 09:58:56 +00:00
2023-12-21 18:56:34 +00:00
function main()
{
{
install -m 0700 /tmp/entrypoint.sh /
install -m 0700 /tmp/entrypoint-start-and-wait.sh /
2023-12-21 18:56:34 +00:00
install -m 0700 /tmp/init.sh /usr/local/bin/
install -m 0700 /tmp/backup.sh /usr/local/bin/
install -m 0700 /tmp/restore.sh /usr/local/bin/
install -m 0700 /tmp/restic-snapshots.sh /usr/local/bin/
cleanupDocker
} > /dev/null
}
2023-12-21 18:56:34 +00:00
source /tmp/install_functions_debian.sh
DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes main