mirror of
https://github.com/valitydev/salt.git
synced 2024-11-06 16:45:27 +00:00
Add pythonpath to batch files and service
This commit is contained in:
parent
de2f397041
commit
4e2fb03a95
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-call
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-cp
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-key
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-master
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-minion
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Stop the Salt Minion service
|
||||
net stop salt-minion
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-minion
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt-run
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -8,6 +8,9 @@ Set SaltDir=%SaltDir:~0,-1%
|
||||
Set Python=%SaltDir%\bin\python.exe
|
||||
Set Script=%SaltDir%\bin\Scripts\salt
|
||||
|
||||
:: Set PYTHONPATH
|
||||
Set PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages
|
||||
|
||||
:: Launch Script
|
||||
"%Python%" "%Script%" %*
|
||||
|
||||
|
@ -335,7 +335,7 @@ Section -Post
|
||||
|
||||
; Register the Salt-Minion Service
|
||||
nsExec::Exec "nssm.exe install salt-minion $INSTDIR\bin\python.exe $INSTDIR\bin\Scripts\salt-minion -c $INSTDIR\conf -l quiet"
|
||||
nsExec::Exec "nssm.exe set salt-minion AppEnvironmentExtra PYTHONHOME="
|
||||
nsExec::Exec "nssm.exe set salt-minion AppEnvironmentExtra PYTHONHOME= PYTHONPATH=C:\salt\bin;C:\salt\bin\Lib\site-packages"
|
||||
nsExec::Exec "nssm.exe set salt-minion Description Salt Minion from saltstack.com"
|
||||
nsExec::Exec "nssm.exe set salt-minion AppNoConsole 1"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user