Build: add powershell command

This commit is contained in:
Viktor Fomin 2023-07-28 16:01:21 +03:00
parent a66a61f7c0
commit 765c68c9f9

View File

@ -37,6 +37,7 @@ xcopy config\nginx\sites-enabled\* build\deploy\nginx\sites-enabled\ /E /R /Y
REM fix paths
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-client.conf) -replace 'ROOTPATH', '%~dp0deploy\client' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-client.conf"
powershell -Command "(gc build\deploy\nginx\sites-enabled\onlyoffice-management.conf) -replace 'ROOTPATH', '%~dp0deploy\management' -replace '\\', '/' | Out-File -encoding ASCII build\deploy\nginx\sites-enabled\onlyoffice-management.conf"
REM restart nginx
echo service nginx stop