Permalink
Browse files

Merge pull request #280 from tarasfrompir/master

Update ssdp_install_module.inc.php
  • Loading branch information...
T-REX-XP committed Sep 13, 2018
2 parents ee52d97 + c944931 commit 8a5eafbbab1f1785d11588085061a1de8155b6c9
Showing with 5 additions and 1 deletion.
  1. +5 −1 modules/ssdp_finder/ssdp_install_module.inc.php
@@ -27,12 +27,16 @@
@umask(0);
@mkdir(ROOT.'cms/saverestore', 0777);
}
// change the type file
//$url = 'https://github.com/Gelezako/MajorDomo-Yeelight/archive/master.tar.gz';
$url = str_replace(".tar.gz", ".zip", $url);
$filename=ROOT.'cms/saverestore/'.$name.'.tgz';
@unlink(ROOT.'cms/saverestore/'.$name.'.tgz');
@unlink(ROOT.'cms/saverestore/'.$name.'.tar');
$f = fopen($filename, 'wb');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, 600);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);

0 comments on commit 8a5eafb

Please sign in to comment.