This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.14
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.14 by this push:
new cdcc914 scripts: creates /var/run/cloud folder for creation of lock
file (#4373)
cdcc914 is described below
commit cdcc9149958feaeeac6a6043a0e112c3475c6ae9
Author: Pearl Dsilva <[email protected]>
AuthorDate: Wed Oct 14 15:45:22 2020 +0530
scripts: creates /var/run/cloud folder for creation of lock file (#4373)
Co-authored-by: Pearl Dsilva <[email protected]>
---
scripts/vm/network/vnet/modifyvxlan.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/vm/network/vnet/modifyvxlan.sh
b/scripts/vm/network/vnet/modifyvxlan.sh
index 3aa19ad..6af2f09 100755
--- a/scripts/vm/network/vnet/modifyvxlan.sh
+++ b/scripts/vm/network/vnet/modifyvxlan.sh
@@ -131,6 +131,9 @@ fi
LOCKFILE=/var/run/cloud/vxlan.lock
+# ensures that parent directories exists and prepares the lock file
+mkdir -p "${LOCKFILE%/*}"
+
(
flock -x -w 10 200 || exit 1
if [[ "$OP" == "add" ]]; then