module Landrush::Cap::Suse::RestartDnsmasq
Constants
- SED_COMMAND
Public Class Methods
restart_dnsmasq(_env)
click to toggle source
# File lib/landrush/cap/host/suse/restart_dnsmasq.rb, line 13 def restart_dnsmasq(_env) system(SED_COMMAND) unless system("cat /etc/resolv.conf | grep 'nameserver 127.0.0.1' > /dev/null 2>&1") system('sudo systemctl restart dnsmasq') end