Results 1 to 1 of 1
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=\([^&]*\).*$/
/p' | sed "s/%20/ /g"`
if [ -d $directory ...
- 12-23-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 16
permission bash script
Hello everybody,
Ive a bash script that works perfect:
but it works in the /tmp/ file, not in the directory i want (/home/git/)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
how can i force the bash script to login as user git? So before create the directory
GreetzCode:login git
Mark


Reply With Quote