Advertisement
adamchilcott

connectWise.sh

Jan 23rd, 2019
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.53 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. #################################################
  4. # Install ConnectWise Control On-Premise on Linux
  5. #################################################
  6.  
  7. declare workingDirectory=~/scInstall
  8. declare downloadUrl="https://www.screenconnect.com/Download?Action=DownloadLatest&Platform=Linux&PreRelease=false"
  9.  
  10. rm -rf $workingDirectory
  11. mkdir $workingDirectory
  12. cd $workingDirectory || exit
  13.  
  14. if (command -v wget)
  15.  
  16. then
  17.     wget -O sc.tar.gz "$downloadUrl"
  18. else
  19.     curl -L "$downloadUrl" > sc.tar.gz
  20. fi
  21.  
  22. tar xf sc.tar.gz
  23. find . -name "install.*"
  24.  
  25. rm -rf $workingDirectory
  26.  
  27. #############
  28. # START NOTES
  29. #############
  30.  
  31. ## What's Next
  32. ## If you need to start and stop the ConnectWise Control services, try these commands:
  33. ## $ sudo /etc/init.d/screenconnect start
  34. ## $ sudo /etc/init.d/screenconnect stop
  35.  
  36. ## Reference:
  37. ## <https://ss64.com/bash/command.html>
  38.  
  39. # 2-clause license ("Simplified BSD License" or "FreeBSD License")
  40. #
  41. # Copyright © 2018, Adam Brian Chilcott
  42. # All rights reserved.
  43. #
  44. # Redistribution and use in source and binary forms, with or without
  45. # modification, are permitted provided that the following conditions are met:
  46. #
  47. # 1. Redistributions of source code must retain the above copyright notice, this
  48. # list of conditions and the following disclaimer.
  49. # 2. Redistributions in binary form must reproduce the above copyright notice,
  50. # this list of conditions and the following disclaimer in the documentation
  51. # and/or other materials provided with the distribution.
  52. #
  53. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  54. # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  55. # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  56. # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
  57. # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  58. # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  59. # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  60. # ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  61. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  62. # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  63. #
  64. # The views and conclusions contained in the software and documentation are those
  65. # of the authors and should not be interpreted as representing official policies,
  66. # either expressed or implied, of the FreeBSD Project.
  67.  
  68. ###########
  69. # END NOTES
  70. ###########
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement