diff options
Diffstat (limited to 'bin/stagit-new-repo')
-rwxr-xr-x | bin/stagit-new-repo | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/stagit-new-repo b/bin/stagit-new-repo index fe5e7ab..69754e6 100755 --- a/bin/stagit-new-repo +++ b/bin/stagit-new-repo @@ -11,7 +11,7 @@ while getopts ":r:d:o:u:h" o; do case "${o}" in *) printf "Invalid option: -%s\\n" "$OPTARG" && exit 1 ;; esac done -home="/home/git/" +home="/home/git" srv="/srv/git" www="/var/www/git" @@ -25,7 +25,7 @@ echo "$uri:$repo.git" > "$srv/$repo.git/url" echo "$owner" > "$srv/$repo.git/owner" echo "$desc" > "$srv/$repo.git/description" chown -R git:git "$srv/$repo.git" -ln -svf "$srv/$repo.git" "$home" +ln -svf "$srv/$repo.git" "$home/" echo "Creating a static page directory..." [ ! -d "$www/$repo" ] && echo "$repo already exists!" && exit 1 |