add test crontab and test_script

This commit is contained in:
2022-07-01 19:34:27 +02:00
parent bca8e302d2
commit c6f70f5c67
4 changed files with 6 additions and 4 deletions
-2
View File
@@ -1,5 +1,3 @@
sshkeys/clients/
sshkeys/host/
crontab.txt
maintain_repo.sh
backups/
+1
View File
@@ -0,0 +1 @@
* * * * * /test_script.sh
+3
View File
@@ -0,0 +1,3 @@
# !/bin/bash
echo "$(date +%Y-%m-%d_%H:%M:%S) Test" >> /logs/test.log
+2 -2
View File
@@ -12,8 +12,8 @@ run_docker_container() {
-e MAINTENANCE_ENABLE="true" \
-e INTERACTIVE_MODE="true" \
-e TZ="Europe/Vienna" \
-v "$PWD"/crontab.txt:/crontab.txt \
-v "$PWD"/maintain_repo.sh:/maintain_repo.sh \
-v "$PWD"/Testing/crontab.txt:/crontab.txt \
-v "$PWD"/Testing/test_script.sh:/test_script.sh \
-v "$PWD"/sshkeys/clients:/sshkeys/clients \
-v "$PWD"/backups:/backups \
"$DOCKER_IMAGE_NAME":"$GIT_BRANCH"