Commit dba4ef58 authored by Ad Schellevis's avatar Ad Schellevis

(shutdown) use proper mode for lock

parent fa9639fe
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
# wait for config lock to release # wait for config lock to release
php -a >/dev/null << EOF php -a >/dev/null << EOF
\$fp = fopen('/conf/config.xml', "w+"); \$fp = fopen('/conf/config.xml', "a+");
if (flock(\$fp, LOCK_EX)) { if (flock(\$fp, LOCK_EX)) {
flock(\$fp, LOCK_UN); flock(\$fp, LOCK_UN);
fclose(\$fp); 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