updatedatabase from command line and create log
authorDobrica Pavlinusic <dpavlin@rot13.org>
Wed, 11 Mar 2015 12:57:54 +0000 (13:57 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 25 Mar 2019 14:43:15 +0000 (15:43 +0100)
ffzg/updatedatabase.sh [new file with mode: 0755]

diff --git a/ffzg/updatedatabase.sh b/ffzg/updatedatabase.sh
new file mode 100755 (executable)
index 0000000..9b41094
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -xe
+
+( time sudo -u ffzg-koha KOHA_CONF=/etc/koha/sites/ffzg/koha-conf.xml PERL5LIB=/srv/koha_ffzg ./installer/data/mysql/updatedatabase.pl 2>&1 ) | tee /tmp/update.log