change installation procedure

This commit is contained in:
Cédric Verstraeten
2015-07-05 20:41:06 +02:00
parent 1cd7410440
commit e312ec391c
4 changed files with 4 additions and 44 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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