From 3f7487053fcf7e7e5777c1ab10dbcad29909d273 Mon Sep 17 00:00:00 2001 From: lmphatsi Date: Mon, 30 Aug 2021 12:22:54 +0200 Subject: [PATCH] Change ownership of volumes from root to openmrs Change ownership of persistent volumes from root to openmrs so that all services owned by openmrs run properly --- scripts/services.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/services.sh b/scripts/services.sh index f0b3890..0e853c3 100755 --- a/scripts/services.sh +++ b/scripts/services.sh @@ -178,6 +178,10 @@ cd /home/openmrs/bahmni_docker/scripts sudo chown openmrs:openmrs /etc/systemd/system/gitpull_outgoingmessage.service sudo chown openmrs:openmrs /etc/systemd/system/gitpull_dhisconnector.service + #Change ownership of persistent volumes from root to openmrs so that all services owned by openmrs run properly + sudo chown -R openmrs:openmrs /development_emr + sudo chown -R openmrs:openmrs /development_erp + #Loading system daemon and enabling services sudo systemctl daemon-reload