/BlogEngine/BlogEngine.NET/setup/Mono/mono_setup.sh
Shell | 45 lines | 25 code | 6 blank | 14 comment | 2 complexity | a98823710f6009e539cc300449017745 MD5 | raw file
1#!/bin/bash 2## 3## BlogEngine.NET Mono Setup Script 4## 5## This script will prepare a Mono installation of BlogEngine.NET. See the 6## ReadMe.txt file in the same directory for instructions on how to use it and 7## what it does. 8## 9## Usage: 10## ./mono_setup.sh [group_name] 11## 12 13## Step 1 - Create the symlink 14echo "Creating symlink (bin -> Bin)..." 15cd ../.. 16if [ -e bin ]; then 17 echo "bin already exists - nothing done" 18else 19 ln -s Bin bin 20 echo "Done!" 21fi 22 23echo 24 25if [ -z $1 ]; then 26## No group, no changed permissions... 27 echo "No group specified; permissions on App_Data were NOT changed" 28 echo 29 echo "BlogEngine.NET Mono setup completed" 30 cd setup/Mono 31 exit 0 32fi 33 34## Step 2 - change the group of App_Data 35echo "Changing App_Data to group $1..." 36chgrp -R $1 App_Data 37 38echo "Assigned group write permissions to App_Data..." 39chmod -R g+w App_Data 40 41echo "Done!" 42echo 43echo "BlogEngine.NET Mono setup completed" 44cd setup/Mono 45exit 0