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:
Anton-Latukha 2020-06-24 03:44:34 +03:00
parent e3e6511c91
commit 2bd98c2d92
No known key found for this signature in database
GPG Key ID: 3D84C07E91802E41
1 changed files with 2 additions and 6 deletions

View File

@ -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