lemp and gitbarerepos
This commit is contained in:
@@ -111,11 +111,11 @@ 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
|
||||
su -c "git init" $user
|
||||
# link to the bare repo
|
||||
git remote add origin /home/"$user"/git-repositories/"$_domain".git
|
||||
su -c "git remote add origin /home/$user/git-repositories/$_domain.git" $user
|
||||
chown -R "$user":"$user" /home/"$user"/www/"$_domain"
|
||||
|
||||
|
||||
cd "$_cwd"
|
||||
|
||||
Reference in New Issue
Block a user