add sanitizing func into bash
continuous-integration/drone/tag Build is passing

This commit is contained in:
victor.kolomin committed 2025-10-02 19:39:15 +02:00
1 parent 532c2855fe
commit 55ea0673bf
1 file changed
+5
+5
View File
@@ -18,6 +18,11 @@ RUN curl -L https://github.com/rustic-rs/rustic/releases/download/${RUSTIC_VERSI
\
chmod +x /usr/local/bin/rustic /usr/local/bin/mc
# --- Configure the shell to auto-source the sanitized environment ---
# This makes interactive sessions (`docker exec -it ... bash`) work correctly out-of-the-box.
RUN echo '\n# Source sanitized environment variables if available' >> /root/.bashrc && \
echo 'if [ -f /etc/profile.d/00-rustic-env.sh ]; then . /etc/profile.d/00-rustic-env.sh; fi' >> /root/.bashrc
COPY backup.sh /usr/local/bin/backup.sh
COPY restore.sh /usr/local/bin/restore.sh
COPY start.sh /start.sh