mirror of
https://github.com/kerberos-io/documentation.git
synced 2026-08-23 15:18:31 +00:00
change installation procedure
This commit is contained in:
@@ -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
|
||||
systemctl enable kerberos.service
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
systemctl enable kerberos.service
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user