add files and ebooks scan
parent
3132c5072f
commit
10eec6df13
|
@ -1,9 +1,9 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Nextcloud cron
|
Description=Nextcloud cron and scan for any new ebooks
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/podman exec nextcloud /bin/bash -c "if ! command -v sudo &> /dev/null; then apt-get update && apt-get install -y sudo; fi; sudo -u www-data php -f /var/www/html/cron.php"
|
ExecStart=/usr/bin/podman exec nextcloud /bin/bash -c "if ! command -v sudo &> /dev/null; then apt-get update && apt-get install -y sudo; fi; sudo -u www-data php -f /var/www/html/cron.php && sudo -u www-data /var/www/html/occ files:scan --path='/pew/files/ebooks'"
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
|
@ -56,6 +56,7 @@ up () {
|
||||||
systemctl start --user nextcloud-redis || systemctl restart --user nextcloud-redis
|
systemctl start --user nextcloud-redis || systemctl restart --user nextcloud-redis
|
||||||
systemctl enable --user nextcloud-redis
|
systemctl enable --user nextcloud-redis
|
||||||
|
|
||||||
|
# Setup nextcloud cron and continuous scanning for new files
|
||||||
cp nextcloud-cron.service nextcloud-cron.timer $HOME/.config/systemd/user/
|
cp nextcloud-cron.service nextcloud-cron.timer $HOME/.config/systemd/user/
|
||||||
systemctl start --user nextcloud-cron.timer || systemctl restart --user nextcloud-cron.timer
|
systemctl start --user nextcloud-cron.timer || systemctl restart --user nextcloud-cron.timer
|
||||||
systemctl enable --user nextcloud-cron.timer
|
systemctl enable --user nextcloud-cron.timer
|
||||||
|
|
|
@ -16,6 +16,7 @@ up () {
|
||||||
--env SUBDOMAINS=airsonic,git,jf,nc,plex \
|
--env SUBDOMAINS=airsonic,git,jf,nc,plex \
|
||||||
--env VALIDATION=http \
|
--env VALIDATION=http \
|
||||||
--env EMAIL=paulsw.pw@gmail.com \
|
--env EMAIL=paulsw.pw@gmail.com \
|
||||||
|
--volume /bigdata/files:/files:ro \
|
||||||
--volume /bigdata/k8s-config/nginx/config:/config:rw \
|
--volume /bigdata/k8s-config/nginx/config:/config:rw \
|
||||||
--volume /bigdata/k8s-config/nginx/nginx.conf:/config/nginx/nginx.conf:ro \
|
--volume /bigdata/k8s-config/nginx/nginx.conf:/config/nginx/nginx.conf:ro \
|
||||||
--volume /bigdata/k8s-config/nginx/ssl.conf:/config/nginx/ssl.conf:ro \
|
--volume /bigdata/k8s-config/nginx/ssl.conf:/config/nginx/ssl.conf:ro \
|
||||||
|
|
Loading…
Reference in New Issue