Skip to content

Instantly share code, notes, and snippets.

@Mic92
Created March 7, 2015 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mic92/76cfc89f15ecb2726462 to your computer and use it in GitHub Desktop.
Save Mic92/76cfc89f15ecb2726462 to your computer and use it in GitHub Desktop.
Update script for owncloud
#!/bin/bash
VERSION="5.0.12"
set -e
[[ -e "owncloud-$VERSION.tar.bz2" ]] || wget "http://download.owncloud.org/community/owncloud-$VERSION.tar.bz2"
tar -xf "owncloud-$VERSION.tar.bz2"
#find "owncloud" -type d -exec chmod +rx {} \;
cp -r ../cloud/config "owncloud"
chown -R http:http "owncloud"
mv "owncloud" "owncloud-$VERSION"
(
cd ..
rm cloud
ln -s owncloud/owncloud-$VERSION cloud
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment