diff --git a/1.0.0/41_machinery/2_installation.md b/1.0.0/41_machinery/2_installation.md index 6686d88d..efebb0b4 100644 --- a/1.0.0/41_machinery/2_installation.md +++ b/1.0.0/41_machinery/2_installation.md @@ -62,22 +62,6 @@ Copy and paste the configuration to the kerberos.service [Install] WantedBy=multi-user.target -Create timer file for kerberos - - nano /etc/systemd/system/kerberos.timer - -Copy and paste the configuration to the kerberos.timer - - [Unit] - Description=Runs kerberos.service, 1 min after system boot. - - [Timer] - OnBootSec=1min - Unit=kerberos.service - - [Install] - WantedBy=multi-user.target - Enable the service to start on boot - systemctl enable kerberos.timer \ No newline at end of file + systemctl enable kerberos.service \ No newline at end of file diff --git a/1.0.0/5_FAQ.md b/1.0.0/5_FAQ.md index fc23c7a2..4f323151 100644 --- a/1.0.0/5_FAQ.md +++ b/1.0.0/5_FAQ.md @@ -370,10 +370,6 @@ Copy paste the bash script /usr/bin/forever restartall ; fi; - ############################################# - # Only keep images of last 3 days on sd-card. - ## - find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \; ############################################################## # Check if disk size is more than 95%, if so remove some files @@ -381,7 +377,7 @@ Copy paste the bash script ## if [[ $(df -h | grep /dev/root | awk -F' ' '{ print $5/1 }' | tr ['%'] ["0"]) -gt 95 ]]; then - rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 500); + rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 1000); fi; Give rights to bash script diff --git a/dev/41_machinery/2_installation.md b/dev/41_machinery/2_installation.md index 6686d88d..efebb0b4 100644 --- a/dev/41_machinery/2_installation.md +++ b/dev/41_machinery/2_installation.md @@ -62,22 +62,6 @@ Copy and paste the configuration to the kerberos.service [Install] WantedBy=multi-user.target -Create timer file for kerberos - - nano /etc/systemd/system/kerberos.timer - -Copy and paste the configuration to the kerberos.timer - - [Unit] - Description=Runs kerberos.service, 1 min after system boot. - - [Timer] - OnBootSec=1min - Unit=kerberos.service - - [Install] - WantedBy=multi-user.target - Enable the service to start on boot - systemctl enable kerberos.timer \ No newline at end of file + systemctl enable kerberos.service \ No newline at end of file diff --git a/dev/5_FAQ.md b/dev/5_FAQ.md index fc23c7a2..4f323151 100644 --- a/dev/5_FAQ.md +++ b/dev/5_FAQ.md @@ -370,10 +370,6 @@ Copy paste the bash script /usr/bin/forever restartall ; fi; - ############################################# - # Only keep images of last 3 days on sd-card. - ## - find /home/kerberos-web/public/capture/ -type f -name '*.jpg' -mtime +1 -exec rm {} \; ############################################################## # Check if disk size is more than 95%, if so remove some files @@ -381,7 +377,7 @@ Copy paste the bash script ## if [[ $(df -h | grep /dev/root | awk -F' ' '{ print $5/1 }' | tr ['%'] ["0"]) -gt 95 ]]; then - rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 500); + rm -f $( ls -d -1tr /home/kerberos-web/public/capture/* | head -n 1000); fi; Give rights to bash script