typo correction on pre and post-receive files
This commit is contained in:
parent
622a90d12c
commit
a5b6d6bb4a
@ -113,8 +113,8 @@ git remote add origin ~/git-repositories/"$_host_name".git
|
|||||||
|
|
||||||
# cerate hooks that will update the site repo
|
# cerate hooks that will update the site repo
|
||||||
cd ~
|
cd ~
|
||||||
cp "$_cwd"/pre-receive ~/git-repositories/"$_host_name".git/hooks/
|
cp "$_cwd"/git-pre-receive ~/git-repositories/"$_host_name".git/hooks/pre-receive
|
||||||
cp "$_cwd"/post-receive ~/git-repositories/"$_host_name".git/hooks/
|
cp "$_cwd"/git-post-receive ~/git-repositories/"$_host_name".git/hooks/post-receive
|
||||||
|
|
||||||
sed -ir "s/PRODDIR=\"www\"/PRODDIR=\/srv\/www\/$_host_name\/public_html/g" ~/git-repositories/"$_host_name".git/hooks/pre-receive
|
sed -ir "s/PRODDIR=\"www\"/PRODDIR=\/srv\/www\/$_host_name\/public_html/g" ~/git-repositories/"$_host_name".git/hooks/pre-receive
|
||||||
sed -ir "s/PRODDIR=\"www\"/PRODDIR=\/srv\/www\/$_host_name\/public_html/g" ~/git-repositories/"$_host_name".git/hooks/post-receive
|
sed -ir "s/PRODDIR=\"www\"/PRODDIR=\/srv\/www\/$_host_name\/public_html/g" ~/git-repositories/"$_host_name".git/hooks/post-receive
|
||||||
|
Loading…
x
Reference in New Issue
Block a user