Skip to content
Snippets Groups Projects
Commit 3a3e5b5d authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#84 Enhance update script for checkout and patch if available

parent 9dae5696
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,12 @@ cd {{ path }}
chown -R {{ apacheUser }}:{{ apacheUser }} {{ path }}
chmod -R g+w {{ path }}
git fetch origin
if [ -f 'ansible.sh' ]; then
./ansible.sh
fi
git pull origin master
if [ -f 'ansible.patch' ]; then
patch -p1 -N < ansible.patch
fi
chown -R {{ apacheUser }}:{{ apacheUser }} {{ path }}
chmod -R ug+r,ug-w,o-w,o-r {{ path }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment