Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2016
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. exec 2>>"${HOME}/petes-install.log
  4.  
  5. Install_and_configure_Mosquitto() {
  6.     case ${Distro} in
  7.         jessie)
  8.             # build mosquitto from source since distro packages don't work with
  9.             # websockets
  10.             :
  11.             ;;
  12.         xenial|stretch)
  13.             # Just install it since packages are up to date and work
  14.             apt-get install mosquitto
  15.             ;;
  16.         *)
  17.             # unsupported, print warning and log everything from here
  18.             echo "Unsupported distro ${Distro}. Expect that things will fail"
  19.             set -x
  20.             apt-get install mosquitto
  21.             set +x
  22.     esac
  23.     # Now do the config stuff
  24.     :
  25. } # Install_and_configure_Mosquitto
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement