Skip to content

Commit

Permalink
change installation procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Verstraeten committed Jul 5, 2015
1 parent 1cd7410 commit e312ec3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 44 deletions.
18 changes: 1 addition & 17 deletions 1.0.0/41_machinery/2_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 1 addition & 5 deletions 1.0.0/5_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,14 @@ 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
# from the capture directory.
##
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
Expand Down
18 changes: 1 addition & 17 deletions dev/41_machinery/2_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 1 addition & 5 deletions dev/5_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -370,18 +370,14 @@ 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
# from the capture directory.
##
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
Expand Down

0 comments on commit e312ec3

Please sign in to comment.