Skip to content

Instantly share code, notes, and snippets.

@ball6847
Created February 21, 2018 07:05
Show Gist options
  • Save ball6847/e1298b35557895a6ce86c63fbbc65954 to your computer and use it in GitHub Desktop.
Save ball6847/e1298b35557895a6ce86c63fbbc65954 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
gluster volume start public_upload force
gluster volume start uploads force
mkdir -p /var/www/{uploads,public/upload}
mount.glusterfs 127.0.0.1:/public_upload /var/www/public/upload
mount.glusterfs 127.0.0.1:/uploads /var/www/uploads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment