Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. /usr/local/sbin/enable-salt-minion
  2. #!/bin/bash
  3.  
  4. export `grep DISTRIB_CODENAME /etc/lsb-release`
  5.  
  6. if [ $DISTRIB_CODENAME == 'xenial' ]; then
  7. systemctl enable salt-minion.service
  8. systemctl start salt-minion.service
  9. else
  10. /bin/rm -f /etc/init/salt-minion.override
  11. service salt-minion start
  12. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement