[FIX] hw_*: Fix the access rights for the LOCALSERVICE user

We must force the access rights to the installation folder to "FullAccess"
because in some environments these rights have been restricted by customers.
And so the iot windows does not work properly

closes odoo/odoo#112735

X-original-commit: db3dff5150a638ed00d16109176853503326cd7f
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
This commit is contained in:
lejeune quentin
2023-02-14 20:13:11 +01:00
parent 82d01eda2b
commit 2797bef1f7
+1
View File
@@ -275,6 +275,7 @@ Section $(TITLE_Odoo_Server) SectionOdoo_Server
nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" set ${SERVICENAME} AppParameters "\"$INSTDIR\server\odoo-bin\" -c "\"$INSTDIR\server\odoo.conf\"'
nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" set ${SERVICENAME} ObjectName "LOCALSERVICE"'
${EndIf}
AccessControl::GrantOnFile "$INSTDIR" "LOCALSERVICE" "FullAccess"
Call RestartOdooService
SectionEnd