CI: .travis.yml: upd service restart
Since service is not touched the daemon-reload is probably not needed, restart is sufficient. M .travis.yml
This commit is contained in:
parent
e3e6511c91
commit
2bd98c2d92
|
@ -110,12 +110,8 @@ jobs:
|
|||
before_script:
|
||||
- sudo mkdir -p /etc/nix
|
||||
- echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf
|
||||
- |
|
||||
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then true && \
|
||||
sudo systemctl stop nix-daemon.service && \
|
||||
sudo systemctl daemon-reload && \
|
||||
sudo systemctl start nix-daemon.service && \
|
||||
true; fi
|
||||
# # Linux service restart
|
||||
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo systemctl restart nix-daemon.service;fi
|
||||
# # macOS service restart
|
||||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then sudo launchctl kickstart -k system/org.nixos.nix-daemon; fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue