Skip to content
Snippets Groups Projects
Commit 9738891b authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#1603 Bug fix in update script

parent 164916f1
No related branches found
No related tags found
No related merge requests found
......@@ -14,11 +14,11 @@ if [[ $OUTPUT == *"master pushes to master (up to date)"* ]]; then
fi
LOCKFILE={{ webRoot }}/.update.lock
if [ -f '$LOCKFILE' ]; then
echo '> locked'
exit
if [ -f "$LOCKFILE" ]; then
echo '> locked'
exit
fi
touch '$LOCKFILE'
touch "$LOCKFILE"
echo '> chown/chmod'
chown -R {{ apacheUser }}:{{ apacheUser }} {{ path }}
......@@ -53,7 +53,7 @@ if [ -f 'post-update.sh' ]; then
./post-update.sh
fi
rm '$LOCKFILE'
rm "$LOCKFILE"
echo '> done'
echo;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment