From d639f3035999871707d74aa20e07998635a175df Mon Sep 17 00:00:00 2001 From: Charlene Auger Date: Wed, 9 Jan 2019 11:21:18 +0100 Subject: [PATCH] fix bug installation --- APACHE/Map.pm | 9 ++++----- APACHE/crontabtaks.conf | 1 - APACHE/crontabtasks.conf | 1 + infos.json | 2 +- install.php | 6 +++--- 5 files changed, 9 insertions(+), 10 deletions(-) delete mode 100644 APACHE/crontabtaks.conf create mode 100644 APACHE/crontabtasks.conf diff --git a/APACHE/Map.pm b/APACHE/Map.pm index 20ff452..ccacbfa 100644 --- a/APACHE/Map.pm +++ b/APACHE/Map.pm @@ -1,9 +1,9 @@ - -package Apache::Ocsinventory::Plugins::CrontabTasks::Map; - + +package Apache::Ocsinventory::Plugins::Crontabtasks::Map; + use strict; - + use Apache::Ocsinventory::Map; $DATA_MAP{crontabtasks} = { @@ -25,4 +25,3 @@ $DATA_MAP{crontabtasks} = { } }; 1; - diff --git a/APACHE/crontabtaks.conf b/APACHE/crontabtaks.conf deleted file mode 100644 index eef542e..0000000 --- a/APACHE/crontabtaks.conf +++ /dev/null @@ -1 +0,0 @@ -PerlModule Apache::Ocsinventory::Plugins::CrontabTasks::Map diff --git a/APACHE/crontabtasks.conf b/APACHE/crontabtasks.conf new file mode 100644 index 0000000..90dd939 --- /dev/null +++ b/APACHE/crontabtasks.conf @@ -0,0 +1 @@ +PerlModule Apache::Ocsinventory::Plugins::Crontabtasks::Map diff --git a/infos.json b/infos.json index 36671a8..ba43e49 100644 --- a/infos.json +++ b/infos.json @@ -3,7 +3,7 @@ "author" : ["Guillaume PROTET", "Valentin DEVILLE"], "contributor" : ["Frank BOURDEAU"], "supportedAgent" : ["Unix"], - "version" : "1.1", + "version" : "2.0", "licence" : "GPLv2", "description" : { "fr" : "Remonte les crontab", diff --git a/install.php b/install.php index 9c24580..7592a94 100644 --- a/install.php +++ b/install.php @@ -3,7 +3,7 @@ /** * This function is called on installation and is used to create database schema for the plugin */ -function extension_install_crontabTasks() +function extension_install_crontabtasks() { $commonObject = new ExtensionCommon; @@ -24,7 +24,7 @@ function extension_install_crontabTasks() /** * This function is called on removal and is used to destroy database schema for the plugin */ -function extension_delete_crontabTasks() +function extension_delete_crontabtasks() { $commonObject = new ExtensionCommon; $commonObject -> sqlQuery("DROP TABLE `crontabtasks`"); @@ -33,7 +33,7 @@ function extension_delete_crontabTasks() /** * This function is called on plugin upgrade */ -function extension_upgrade_crontabTasks() +function extension_upgrade_crontabtasks() { }