Skip to content
This repository has been archived by the owner on Aug 27, 2024. It is now read-only.

Commit

Permalink
fix(backup): crlf script processing
Browse files Browse the repository at this point in the history
  • Loading branch information
dorucioclea committed Apr 5, 2024
1 parent ee6d7b9 commit 727ed5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker/backup/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:latest

# Install cron and PostgreSQL client
RUN apt-get update && apt-get install -y cron postgresql-client
RUN apt-get update && apt-get install -y cron postgresql-client dos2unix

# Cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Expand All @@ -10,6 +10,8 @@ RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD backup-script.sh /backup-script.sh
ADD start-cron.sh /start-cron.sh


RUN dos2unix /backup-script.sh /start-cron.sh
# Make your scripts executable
RUN chmod +x /backup-script.sh /start-cron.sh

Expand Down

0 comments on commit 727ed5d

Please sign in to comment.