FFZG: ffzg/updatedatbase.sh generate yyyy-mm-dd.update.log file
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 26 Mar 2019 17:22:56 +0000 (18:22 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 26 Mar 2019 17:23:15 +0000 (18:23 +0100)
ffzg/updatedatabase.sh

index 6a2d9f4..04c8e2a 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh -xe
 
 sudo /etc/init.d/memcached restart
-( 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
+( 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 `date +%Y-%m-%d`.update.log
 sudo /etc/init.d/memcached restart
 sudo koha-plack --restart ffzg