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:
|
before_script:
|
||||||
- sudo mkdir -p /etc/nix
|
- sudo mkdir -p /etc/nix
|
||||||
- echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf
|
- echo "trusted-users = root $USER" | sudo tee -a /etc/nix/nix.conf
|
||||||
- |
|
# # Linux service restart
|
||||||
if [ "${TRAVIS_OS_NAME}" = "linux" ]; then true && \
|
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sudo systemctl restart nix-daemon.service;fi
|
||||||
sudo systemctl stop nix-daemon.service && \
|
|
||||||
sudo systemctl daemon-reload && \
|
|
||||||
sudo systemctl start nix-daemon.service && \
|
|
||||||
true; fi
|
|
||||||
# # macOS service restart
|
# # macOS service restart
|
||||||
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then sudo launchctl kickstart -k system/org.nixos.nix-daemon; fi
|
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then sudo launchctl kickstart -k system/org.nixos.nix-daemon; fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue