git barerepos & redis warnings

This commit is contained in:
2021-03-16 10:02:38 +01:00
parent a96979f219
commit 37a8a031da
2 changed files with 7 additions and 2 deletions

View File

@@ -111,12 +111,12 @@ if [ "$vh" = "yes" ]; then
chmod +x post-receive # pre-receive
# setup git repo on site folder
cd /home/"$user"/www/"$_domain"/public_html
cd /home/"$user"/www/"$_domain"/app
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
chown -R "$user":"$user" /home/"$user"/www/"$_domain"/app
cd "$_cwd"
# done