* change to dev
* add borg repo maintenace env and update build script
This commit is contained in:
2022-06-30 22:01:55 +02:00
committed by GitHub
parent 3e113abb9e
commit 0cfb5f5b75
3 changed files with 29 additions and 7 deletions
+13 -1
View File
@@ -1,5 +1,5 @@
#!/bin/sh
DOCKER_IMAGE_VERSION="1.0.5"
DOCKER_IMAGE_VERSION="1.0.6"
sepurator() {
echo "==============================================================================="
@@ -64,6 +64,18 @@ fi
chown -R "$USER":"$USER" "/sshkeys/host"
# MAINTENANCE_ENABLE of Borg Repository
if [ $MAINTENANCE_ENABLE != "false" ]; then
if [ -f "/crontab.txt" ]; then
/usr/bin/crontab "/crontab.txt"
/usr/sbin/crond -b
echo "* Crontab loaded successfully"
else
echo "* Can not find /crontab.txt"
fi
sepurator
fi
echo "* Init done! - Starting SSH-Daemon..."
sepurator
exec /usr/sbin/sshd -D -e "$@"