Skip to content

Instantly share code, notes, and snippets.

@zanesensenig
Created April 24, 2015 14:41
Show Gist options
  • Save zanesensenig/8492d78296d753c48b0d to your computer and use it in GitHub Desktop.
Save zanesensenig/8492d78296d753c48b0d to your computer and use it in GitHub Desktop.
permissions.sh
#!/bin/sh
location=$(pwd)
PSU=`echo $location| cut -d'.' -f 1`
echo $PSU
#PSUSTRING=`echo $PSU| cut -d'/' -f 1`
#PSUSTRING=`echo $PSU|tail -c 10`
#echo $PSUSTRING
# SUBSTRING=`echo $INPUT| cut -d'_' -f 2`
# /home/zus10/html/theatre.psu.edu
# SET APACHE PERMISSIONS
# if [ $current == $location ]
# then
# sudo chmod -R 775 $location
# sudo chown -R apache:apache "$location/sites/default/files"
# else
# sudo chown -R apache:apache "$location/sites/*.psu.edu/files"
# sudo chmod -R 775 $location
# fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment