Commit 18b21c77 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(shutdown) use proper mode for lock

(cherry picked from commit dba4ef58)
parent c3faadf3
......@@ -15,7 +15,7 @@
# wait for config lock to release
php -a >/dev/null << EOF
\$fp = fopen('/conf/config.xml', "w+");
\$fp = fopen('/conf/config.xml', "a+");
if (flock(\$fp, LOCK_EX)) {
flock(\$fp, LOCK_UN);
fclose(\$fp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment