diff --git a/env.sh b/env.sh index ccbe801..cce7d84 100755 --- a/env.sh +++ b/env.sh @@ -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 diff --git a/init.sh b/init.sh index 0e5bd69..0c5428d 100755 --- a/init.sh +++ b/init.sh @@ -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