SITKA Public Git
/
sitka
/
sitka-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
077e0b7
)
install-eg.sh: optionally install default crontab
author
Jeff Davis
<jdavis@sitka.bclibraries.ca>
Tue, 1 Mar 2016 23:08:05 +0000
(15:08 -0800)
committer
Jeff Davis
<jdavis@sitka.bclibraries.ca>
Tue, 1 Mar 2016 23:08:05 +0000
(15:08 -0800)
deployment/install-eg.sh
patch
|
blob
|
blame
|
history
diff --git
a/deployment/install-eg.sh
b/deployment/install-eg.sh
index
d51a2f6
..
54e029e
100755
(executable)
--- a/
deployment/install-eg.sh
+++ b/
deployment/install-eg.sh
@@
-26,6
+26,7
@@
while getopts ":p" opt ; do
case $opt in
p ) PROD="prod";;
e ) EDI="edi";;
+ c ) CRONTAB="crontab";;
esac
done
shift $(($OPTIND - 1))
@@
-100,6
+101,13
@@
if [[ ! -n "$PROD" ]] ; then
a2ensite 499-star.catalogue.libraries.coop.conf
fi
+# install default crontab, if specified
+if [[ -c "$CRONTAB" ]]; then
+ if [ ! -f "/etc/cron.d/evergreen-dailies" ] ; then
+ cp ${SITKACONF}/files/etc/cron.d/evergreen-dailies/${HOSTNAME} /etc/cron.d/evergreen-dailies
+ fi
+fi
+
# set up log rotation
if [[ ! -n "$PROD" ]] ; then
if [ ! -f "/etc/logrotate.d/evergreen" ]