Skip to content

Instantly share code, notes, and snippets.

@ef4
Created August 31, 2013 18:51
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 ef4/6399936 to your computer and use it in GitHub Desktop.
Save ef4/6399936 to your computer and use it in GitHub Desktop.
chroot creation for owncloud
cd /var/lib/owncloud
tar -c /dev/null /dev/zero /dev/urandom /etc/timezone /etc/resolv.conf /etc/hosts /etc/localtime /usr/share/zoneinfo | tar x
mkdir -m 1733 -p ./var/lib/php5
mkdir -m 1777 ./tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment