Browse Source

restored cron bugfix, since cron bug seems to still be active

feature/startup-from-labels
Mar Alegre 5 years ago
parent
commit
a7025244e7
  1. 8
      src/gitea/Containerfile
  2. 2
      src/gitea/bugfix/cronfix
  3. 8
      src/mailsrv/Containerfile
  4. 2
      src/mailsrv/bugfix/cronfix
  5. 2
      src/mcbe/assets/bin/mcbe-backup
  6. 4
      src/nextcloud/Containerfile
  7. 2
      src/nextcloud/bugfix/cronfix

8
src/gitea/Containerfile

@ -80,3 +80,11 @@ COPY assets/gitea.service /etc/systemd/system/
###
COPY assets/crontab /root/
RUN crontab -u gitea /root/crontab
###
### Bugfix
###
# bugfix for cron
COPY bugfix/cronfix /root/
RUN chmod +x /root/cronfix && /root/cronfix

2
src/gitea/bugfix/cronfix

@ -0,0 +1,2 @@
#!/bin/sh
sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron

8
src/mailsrv/Containerfile

@ -77,3 +77,11 @@ RUN mkdir -p /vol/etc
# set /vol/etc as working directory
WORKDIR /vol/etc
###
### Bugfix
###
# bugfix for cron
COPY bugfix/cronfix /root/
RUN chmod +x /root/cronfix && /root/cronfix

2
src/mailsrv/bugfix/cronfix

@ -0,0 +1,2 @@
#!/bin/sh
sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron

2
src/mcbe/assets/bin/mcbe-backup

@ -76,3 +76,5 @@ done
# make sure everything is owned by worlds owner
chown -R "$(stat -c %U:%G $worlds_dir)" ./
# touch backup dir to update its last-edited date
touch ./

4
src/nextcloud/Containerfile

@ -121,3 +121,7 @@ RUN crontab -u www-data /root/crontab
COPY bugfix/redis.service /etc/systemd/system/redis.service
COPY bugfix/apache2.override /etc/systemd/system/apache2.service.d/override.conf
# bugfix for cron
COPY bugfix/cronfix /root/
RUN chmod +x /root/cronfix && /root/cronfix

2
src/nextcloud/bugfix/cronfix

@ -0,0 +1,2 @@
#!/bin/sh
sed -i '/session required pam_loginuid.so/c\#session required pam_loginuid.so' /etc/pam.d/cron
Loading…
Cancel
Save