Advertisement
Guest User

Untitled

a guest
Mar 9th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. set -e
  4. set -v
  5.  
  6. sudo apt-get -y install vim owncloud-client-cmd apache2 libapache2-mpm-itk libapache2-mod-php chromium-browser unclutter php-cli
  7.  
  8. sudo a2enmod headers
  9.  
  10. mkdir -p ~/bin
  11.  
  12.  
  13. CONF=~/bin/owncloud_user.conf
  14. if (! stat "${CONF}" ) ; then
  15. cat > "${CONF}" << HERE
  16. # Please update this file to reflect the correct authentification data
  17. # then type <ESC>:wq<ENTER> to save these settings
  18. USER=test
  19. PASS=test
  20. SERVER=https://example.org
  21. DIR=~/signage
  22. HERE
  23. fi
  24.  
  25. rm -rf ${DIR}
  26.  
  27. while (! stat ${DIR}/Programm/install.sh) ; do
  28. vi "${CONF}"
  29. eval "$(cat ${CONF})"
  30. mkdir -p ${DIR}
  31. owncloudcmd --silent --user "${USER}" --password "${PASS}" "${DIR}" "${SERVER}"
  32. done
  33.  
  34. cd ${DIR}/Programm
  35. chmod +x install2.sh
  36. ./install2.sh
  37.  
  38. set +v
  39. echo "***********************************************"
  40. echo "Installation was successful. Please restart the"
  41. echo "machine by typing: sudo telinit 6"
  42. echo "***********************************************"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement