From 9386b4280c78ed664b5168b9bec525d4d08280b8 Mon Sep 17 00:00:00 2001 From: Jeff Volkenant Date: Thu, 18 Apr 2019 09:29:42 -0700 Subject: [PATCH] updated for tomcat9 and systemctl permission override --- setup/solr.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup/solr.sh b/setup/solr.sh index 72f8af61..4e344aea 100644 --- a/setup/solr.sh +++ b/setup/solr.sh @@ -58,8 +58,14 @@ hide_output install -m 644 conf/cronjob/solr /etc/cron.d/ chown -R mail:dovecot /etc/dovecot chmod -R o-rwx /etc/dovecot +cat > /etc/systemd/system/tomcat9.service.d/solr-permissions.conf << EOF +[Service] +ReadWritePaths=/var/lib/solr/ +ReadWritePaths=/var/lib/solr/data/ +EOF + # Restart services to reload solr schema & dovecot plugins -restart_service tomcat8 +restart_service tomcat9 restart_service dovecot