summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiorgio Gilestro2020-11-27 12:15:51 +0000
committerGiorgio Gilestro2020-11-27 12:15:51 +0000
commit8ea046b4b4c4de6f5fbdfebbfa990c8ba26fb3a8 (patch)
tree6b7b89043d07808fc598c8ebf19e7d40c2768268
parent6e2f86f603a41e42705c2d3ab419dc9312ba4f51 (diff)
downloadaur-8ea046b4b4c4de6f5fbdfebbfa990c8ba26fb3a8.tar.gz
Add cronie as a dependency and installs make_index.py as croned routine (daily)
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD2
-rw-r--r--ethoscope-node.install3
3 files changed, 5 insertions, 1 deletions
diff --git a/.SRCINFO b/.SRCINFO
index cb60007ada2a..636556fe079e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,6 +12,7 @@ pkgbase = ethoscope-node
makedepends = wget
makedepends = fping
depends = ntp
+ depends = cronie
depends = openssh
depends = mariadb
depends = dnsmasq
diff --git a/PKGBUILD b/PKGBUILD
index 7d76128fb393..489771427a02 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,7 +8,7 @@ arch=('any')
url="http://lab.gilest.ro/ethoscope"
license=('GPL3')
makedepends=('git' 'gcc-fortran' 'rsync' 'wget' 'fping' )
-depends=('ntp' 'openssh' 'mariadb' 'dnsmasq' 'avahi' 'python-setuptools' 'python-pip' 'python-ifaddr' 'python-numpy' 'python-bottle' 'python-pyserial' 'python-mysql-connector' 'python-netifaces' 'python-cherrypy' 'python-eventlet' 'python-gitpython' 'python-dnspython' 'python-greenlet' 'python-monotonic' 'python-zeroconf' 'python-cheroot')
+depends=('ntp' 'cronie' 'openssh' 'mariadb' 'dnsmasq' 'avahi' 'python-setuptools' 'python-pip' 'python-ifaddr' 'python-numpy' 'python-bottle' 'python-pyserial' 'python-mysql-connector' 'python-netifaces' 'python-cherrypy' 'python-eventlet' 'python-gitpython' 'python-dnspython' 'python-greenlet' 'python-monotonic' 'python-zeroconf' 'python-cheroot')
provides=('ethoscope')
install="ethoscope-node.install"
source=("$pkgname::git+https://github.com/gilestrolab/ethoscope.git")
diff --git a/ethoscope-node.install b/ethoscope-node.install
index 326b52dda1fc..a99a4072bd53 100644
--- a/ethoscope-node.install
+++ b/ethoscope-node.install
@@ -27,6 +27,9 @@ post_install() {
#setting host settings on node
echo "127.0.0.1 node" > /etc/hosts
+ #Link scripts that need to run automatically
+ ln -s /opt/ethoscope-node/node_src/scripts/make_index.py /etc/cron.daily/make_index.py
+
echo "PLEASE REBOOT NOW."
}