Update readme.md - Regular sync rsync script had mistake

docker command with -it cannot re run as cronjob - getting error that "Device is no TTY"

Signed-off-by: foegra <foegra@yahoo.com>
This commit is contained in:
foegra 2024-12-06 08:52:27 +01:00 committed by GitHub
parent c130cc0c0f
commit b11f22b0e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -608,7 +608,7 @@ rm "$TARGET_DIRECTORY/aio-lockfile"
umount "$DRIVE_MOUNTPOINT"
if docker ps --format "{{.Names}}" | grep "^nextcloud-aio-nextcloud$"; then
docker exec -it nextcloud-aio-nextcloud bash /notify.sh "Rsync backup successful!" "Synced the backup repository successfully."
docker exec -i nextcloud-aio-nextcloud bash /notify.sh "Rsync backup successful!" "Synced the backup repository successfully."
else
echo "Synced the backup repository successfully."
fi