Skip to content

Commit 0c73407

Browse files
committed
Correction Bug installation depuis Market
1 parent 461c39f commit 0c73407

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

plugin_info/info.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"hasOwnDeamon": true,
2121
"hasDependency": false,
2222
"maxDependancyInstallTime": 0,
23+
"link": {
24+
"forum": "https://community.jeedom.com/t/info-plugin-freebox-mise-a-jour-des-composants-de-la-delta-tiles-systeme/30673"
25+
},
26+
"documentation": "http://mika-nt28.github.io/Documentations/Freebox_OS/#language#/",
27+
"changelog": "https://mika-nt28.github.io/Documentations/Freebox_OS/#language#/changelog",
28+
"changelog_beta": "https://mika-nt28.github.io/Documentations/Freebox_OS/#language#/changelog_beta",
29+
"documentation_beta": "http://mika-nt28.github.io/Documentations/Freebox_OS/#language#/index_beta",
2330
"language": [
2431
"de_DE",
2532
"en_US",
@@ -28,13 +35,6 @@
2835
"it_IT",
2936
"pt_PT"
3037
],
31-
"documentation": "http://mika-nt28.github.io/Documentations/Freebox_OS/#language#/",
32-
"changelog": "https://mika-nt28.github.io/Documentations/Freebox_OS/#language#/changelog",
33-
"changelog_beta": "https://mika-nt28.github.io/Documentations/Freebox_OS/#language#/changelog_beta",
34-
"documentation_beta": "http://mika-nt28.github.io/Documentations/Freebox_OS/#language#/index_beta",
35-
"link": {
36-
"forum": "https://community.jeedom.com/t/info-plugin-freebox-nouveautes/30673"
37-
},
3838
"compatibility": [
3939
"miniplus",
4040
"smart",

plugin_info/install.php

+7-6
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function Freebox_OS_update()
7474
$cron->setTimeout('15');
7575
$cron->save();
7676
}
77-
//updateConfig();
77+
updateConfig();
7878

7979

8080
try {
@@ -223,11 +223,12 @@ function removeLogicId($cmdDel)
223223

224224
function updateConfig()
225225
{
226-
config::save('FREEBOX_SERVER_IP', "mafreebox.freebox.fr", 'Freebox_OS');
227-
config::save('FREEBOX_SERVER_APP_NAME', 'Freebox_OS', "Plugin Freebox OS");
228-
config::save('FREEBOX_SERVER_APP_ID', 'Freebox_OS', "plugin.freebox.jeedom");
229-
config::save('FREEBOX_SERVER_DEVICE_NAME', config::byKey("name"), 'Freebox_OS');
230-
config::save('FREEBOX_REBOOT_DEAMON', FALSE, 'Freebox_OS');
226+
config::save('FREEBOX_SERVER_IP', config::byKey('FREEBOX_SERVER_IP', 'Freebox_OS', "mafreebox.freebox.fr"), 'Freebox_OS');
227+
//config::save('FREEBOX_SERVER_APP_VERSION', config::byKey('FREEBOX_SERVER_APP_VERSION', 'Freebox_OS', "v5.0.0"), 'Freebox_OS');
228+
config::save('FREEBOX_SERVER_APP_NAME', config::byKey('FREEBOX_SERVER_APP_NAME', 'Freebox_OS', "Plugin Freebox OS"), 'Freebox_OS');
229+
config::save('FREEBOX_SERVER_APP_ID', config::byKey('FREEBOX_SERVER_APP_ID', 'Freebox_OS', "plugin.freebox.jeedom"), 'Freebox_OS');
230+
config::save('FREEBOX_SERVER_DEVICE_NAME', config::byKey('FREEBOX_SERVER_DEVICE_NAME', 'Freebox_OS', config::byKey("name")), 'Freebox_OS');
231+
config::save('FREEBOX_REBOOT_DEAMON', config::byKey('FREEBOX_REBOOT_DEAMON', 'Freebox_OS', FALSE), 'Freebox_OS');
231232

232233
$version = 1;
233234
if (config::byKey('FREEBOX_CONFIG_V', 'Freebox_OS', 0) != $version) {

0 commit comments

Comments
 (0)