Clean initial stdout

This commit is contained in:
Pau RE
2024-09-04 13:29:14 +02:00
parent 5aec20408d
commit 8aa2ae7104
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -60,9 +60,7 @@ KEEP_WEEKS=`expr $(((${BACKUP_KEEP_WEEKS} * 7) + 1))`
KEEP_MONTHS=`expr $(((${BACKUP_KEEP_MONTHS} * 31) + 1))`
# Validate backup dir
if [ -d "${BACKUP_DIR}" -a -w "${BACKUP_DIR}" -a -x "${BACKUP_DIR}" ]; then
echo "Backups will be stored at ${BACKUP_DIR}."
else
if [ '!' -d "${BACKUP_DIR}" -o '!' -w "${BACKUP_DIR}" -o '!' -x "${BACKUP_DIR}" ]; then
echo "BACKUP_DIR points to a file or folder with insufficient permissions."
exit 1
fi
-1
View File
@@ -10,5 +10,4 @@ if [ "${BACKUP_ON_START}" = "TRUE" ]; then
EXTRA_ARGS="-i"
fi
echo "Starting go-cron ($SCHEDULE)..."
exec /usr/local/bin/go-cron -s "$SCHEDULE" -p "$HEALTHCHECK_PORT" $EXTRA_ARGS -- /backup.sh