Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- exec 2>>"${HOME}/petes-install.log
- Install_and_configure_Mosquitto() {
- case ${Distro} in
- jessie)
- # build mosquitto from source since distro packages don't work with
- # websockets
- :
- ;;
- xenial|stretch)
- # Just install it since packages are up to date and work
- apt-get install mosquitto
- ;;
- *)
- # unsupported, print warning and log everything from here
- echo "Unsupported distro ${Distro}. Expect that things will fail"
- set -x
- apt-get install mosquitto
- set +x
- esac
- # Now do the config stuff
- :
- } # Install_and_configure_Mosquitto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement