浏览代码

fixed gitbarrerepos bug

bach 10 月之前
父节点
当前提交
2c3682bf4c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/gitbarrerepos.sh

+ 1 - 1
bin/gitbarrerepos.sh

@@ -111,12 +111,12 @@ if [ "$vh" = "yes" ]; then
   chmod +x post-receive # pre-receive
 
   # setup git repo on site folder
+  chown -R "$user":"$user" /home/"$user"/www/"$_domain"/public_html
   cd /home/"$user"/www/"$_domain"/public_html
   git init
   # link to the bare repo
   git remote add origin /home/"$user"/git-repositories/"$_domain".git
 
-  chown -R "$user":"$user" /home/"$user"/www/"$_domain"/public_html
 
   cd "$_cwd"
   # done