Fix services

This commit is contained in:
2023-03-26 11:08:10 +01:00
parent 678894d7db
commit a07018b802
5 changed files with 20 additions and 2 deletions

View File

@@ -73,6 +73,9 @@ chown -R git /var/lib/gitea
# systemctl enable --now certbot.timer # systemctl enable --now certbot.timer
#fi #fi
cp /opt/scarif/zfs/* /etc/systemd/system/
systemctl enable --now zfs-scrub.timer
echo "------- Adding config folders for jitsi -------" echo "------- Adding config folders for jitsi -------"
mkdir -p /opt/jitsi/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri} mkdir -p /opt/jitsi/{web/letsencrypt,transcripts,prosody/config,prosody/prosody-plugins-custom,jicofo,jvb,jigasi,jibri}

View File

@@ -3,4 +3,4 @@ Description=Let's Encrypt renewal
[Service] [Service]
Type=oneshot Type=oneshot
ExecStart=/usr/bin/certbot renew --quiet --agree-tos --deploy-hook "cp /etc/letsencrypt/live/scarif.space/fullchain.pem /opt/ssl/scarif.space.crt && cp /etc/letsencrypt/live/scarif.space/privkey.pem /opt/ssl/scarif.space.key && docker-compose /opt/scarif/docker-compose.yml exec nginx nginx -s reload" ExecStart=/usr/bin/certbot renew --quiet --agree-tos --deploy-hook "cp /etc/letsencrypt/live/scarif.space-001/fullchain.pem /opt/ssl/scarif.space.crt && cp /etc/letsencrypt/live/scarif.space-001/privkey.pem /opt/ssl/scarif.space.key && docker-compose -f /opt/scarif/docker-compose.yml exec nginx nginx -s reload"

View File

@@ -511,7 +511,6 @@ services:
- gitea - gitea
- collabora - collabora
ports: ports:
- 80:80
- 443:443 - 443:443
networks: networks:
- nginx - nginx

View File

@@ -0,0 +1,6 @@
[Unit]
Description=Nextcloud file scan
[Service]
Type=oneshot
ExecStart=docker-compose -f /opt/scarif/docker-compose.yml exec nextcloud php occ files:scan --all

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Regular scan of nextcloud files
[Timer]
OnCalendar=*:0/15
RandomizedDelaySec=2m
Persistent=true
[Install]
WantedBy=timers.target