Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- set -e
- set -v
- sudo apt-get -y install vim owncloud-client-cmd apache2 libapache2-mpm-itk libapache2-mod-php chromium-browser unclutter php-cli
- sudo a2enmod headers
- mkdir -p ~/bin
- CONF=~/bin/owncloud_user.conf
- if (! stat "${CONF}" ) ; then
- cat > "${CONF}" << HERE
- # Please update this file to reflect the correct authentification data
- # then type <ESC>:wq<ENTER> to save these settings
- USER=test
- PASS=test
- SERVER=https://example.org
- DIR=~/signage
- HERE
- fi
- rm -rf ${DIR}
- while (! stat ${DIR}/Programm/install.sh) ; do
- vi "${CONF}"
- eval "$(cat ${CONF})"
- mkdir -p ${DIR}
- owncloudcmd --silent --user "${USER}" --password "${PASS}" "${DIR}" "${SERVER}"
- done
- cd ${DIR}/Programm
- chmod +x install2.sh
- ./install2.sh
- set +v
- echo "***********************************************"
- echo "Installation was successful. Please restart the"
- echo "machine by typing: sudo telinit 6"
- echo "***********************************************"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement