mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Unset PYTHONHOME when starting the service
Means that installing Python on the system shouldn't break Salt
This commit is contained in:
parent
19fa43c290
commit
6632d06e94
1 changed files with 1 additions and 0 deletions
|
@ -249,6 +249,7 @@ Section -Post
|
|||
WriteRegStr HKLM "SYSTEM\CurrentControlSet\services\salt-minion" "DependOnService" "nsi"
|
||||
|
||||
ExecWait "nssm.exe install salt-minion $INSTDIR\bin\python.exe $INSTDIR\bin\Scripts\salt-minion -c $INSTDIR\conf -l quiet"
|
||||
ExecWait "nssm.exe set salt-minion AppEnvironmentExtra PYTHONHOME="
|
||||
RMDir /R "$INSTDIR\var\cache\salt" ; removing cache from old version
|
||||
|
||||
Call updateMinionConfig
|
||||
|
|
Loading…
Add table
Reference in a new issue