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

22 lines
571 B
Bash
Raw Normal View History

2021-08-06 15:36:59 +00:00
#!/bin/bash
2023-12-07 20:54:20 +00:00
set -exo pipefail
2023-12-21 19:13:30 +00:00
function main() {
{
install -m 0700 /tmp/entrypoint.sh /
install -m 0700 /tmp/entrypoint-start-and-wait.sh /
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/list-snapshots.sh /usr/local/bin/
install -m 0700 /tmp/start-maintenance.sh /usr/local/bin/
install -m 0700 /tmp/end-maintenance.sh /usr/local/bin/
cleanupDocker
} > /dev/null
}
source /tmp/install_functions_debian.sh
main