fixed gitbarrerepos bug

This commit is contained in:
Bachir Soussi Chiadmi 2023-07-01 12:12:06 +02:00
parent 692584ff8a
commit 2c3682bf4c

View File

@ -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