Compare commits

...

2 Commits

Author SHA1 Message Date
e7ed6c3e07
feat: prepare given amandahosts file
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-31 12:55:27 +02:00
6309901da2
fix: move amanda-security.conf to the correct location 2024-07-31 12:54:50 +02:00
2 changed files with 8 additions and 1 deletions

View File

@ -37,7 +37,8 @@ RUN chmod +x /entryPoint.sh
ENV LD_LIBRARY_PATH /usr/local/share/perl5/site_perl/auto/Amanda/Debug/
RUN chown -R backup:backup /var/backups
RUN cp /usr/local/etc/amanda/amanda-security.conf /usr/local/etc/
RUN chown backup:backup /usr/local/etc/amanda-security.conf
USER backup
ENTRYPOINT ["/usr/bin/tini", "--", "/entryPoint.sh"]

View File

@ -1,3 +1,9 @@
#!/bin/bash
if [ -e /var/backups/amandahosts ]; then
cp /var/backups/amandahosts /var/backups/.amandahosts
chmod 600 /var/backups/.amandahosts
fi
inetd -d /etc/inetd.conf