summaryrefslogtreecommitdiffstats
path: root/glpi-ocsinventoryng-lock.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-10-02 18:30:54 +0200
committerRemi Collet <fedora@famillecollet.com>2013-10-02 18:30:54 +0200
commita8fc81287595250edcd18503ea2319d0c1ff6863 (patch)
tree714da32966251b868bc2356d11f87bd0cee07f51 /glpi-ocsinventoryng-lock.patch
glpi-ocsinventoryng: 1.0.2 - New Package
Diffstat (limited to 'glpi-ocsinventoryng-lock.patch')
-rw-r--r--glpi-ocsinventoryng-lock.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/glpi-ocsinventoryng-lock.patch b/glpi-ocsinventoryng-lock.patch
new file mode 100644
index 0000000..ac3f491
--- /dev/null
+++ b/glpi-ocsinventoryng-lock.patch
@@ -0,0 +1,33 @@
+Index: trunk/scripts/ocsng_fullsync.sh
+===================================================================
+--- ocsinventoryng/scripts/ocsng_fullsync.sh (revision 331)
++++ ocsinventoryng/scripts/ocsng_fullsync.sh (revision 332)
+@@ -31,7 +31,7 @@
+
+ exit_if_soft_lock()
+ {
+- if [ -f $GLPI_LOCK_DIR/ocsinventory.lock ]
++ if [ -f $GLPI_LOCK_DIR/ocsinventoryng.lock ]
+ then
+ echo "Software lock : script can't run !"
+ exit 1
+Index: trunk/scripts/run.php
+===================================================================
+--- ocsinventoryng/scripts/run.php (revision 331)
++++ ocsinventoryng/scripts/run.php (revision 332)
+@@ -70,7 +70,7 @@
+
+ function exit_if_soft_lock() {
+
+- if (file_exists(GLPI_LOCK_DIR."/massocsimport.lock")) {
++ if (file_exists(GLPI_LOCK_DIR."/ocsinventoryng.lock")) {
+ echo "Software lock : script can't run !\n";
+ exit (1);
+ }
+@@ -204,4 +204,4 @@
+ cleanup($pidfile);
+ fwrite ($log, date("r") . " " . $_SERVER["argv"][0] . " ended\n\n");
+
+-?>
+\ No newline at end of file
++?>