Hello everybody,

Ive a bash script that works perfect:
Code:
#!/bin/bash
echo "Content-type: text/html"
echo ""
directory=`echo "$QUERY_STRING" | sed -n 's/^.*directory=\([^&]*\).*$/\1/p' | sed "s/%20/ /g"`
               
if [ -d $directory ]; then 
        echo "Repository excist<br/>"
else 
        mkdir -p  $directory
        echo "directory: $directory  made<br/>"
fi  
         
cd $directory
git --bare init
but it works in the /tmp/ file, not in the directory i want (/home/git/)

how can i force the bash script to login as user git? So before create the directory
Code:
login git
Greetz
Mark