Skip to content
Snippets Groups Projects
Commit 1459a046 authored by Timothee Besset's avatar Timothee Besset
Browse files

make sure avahi-daemon is enabled

parent a7d17527
Branches main
No related tags found
No related merge requests found
......@@ -39,4 +39,10 @@ if __name__ == '__main__':
logger.info('installing packages for the service')
subprocess.check_call('sudo -A pacman -S avahi dbus-python zenity', shell=True)
enable_avahi = ( subprocess.run('systemctl status avahi-daemon 2>&1 >/dev/null', shell=True).returncode != 0 )
if enable_avahi:
logger.info('avahi-daemon needs to be enabled')
subprocess.check_call('sudo -A systemctl enable --now avahi-daemon', shell=True)
logger.info('avahi-daemon is enabled')
logger.info('======== hackendeck configuration complete ==========')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment