Commit cd82eb08 authored by Jeremy Fischer's avatar Jeremy Fischer
Browse files

Fix Updater

parent b7f005bb
......@@ -2,8 +2,7 @@ Deployment notes:
Setup:
PHP-Required-Modules:
Json
Zip
Zip (extension=zip.so)
1. Create data/ directory
2. Allow R/W Access to conf/ and data/
......
<?php
depend("config");
function updates_install(){
file_put_contents("update.zip", file_get_contents($GLOBALS["config"]["updates"]["web_url"] . "/-/archive/" . $GLOBALS["config"]["updates"]["latest_tag"] . "/" . $GLOBALS["config"]["updates"]["zipname"] . "-v0.0.1-stable.zip"));
file_put_contents("update.zip", file_get_contents($GLOBALS["config"]["updates"]["web_url"] . "/-/archive/" . $GLOBALS["config"]["updates"]["latest_tag"] . "/" . $GLOBALS["config"]["updates"]["zipname"] . "-" . $GLOBALS["config"]["updates"]["latest_tag"] . ".zip"));
$zip = new ZipArchive;
$res = $zip -> open('update.zip');
if ($res === TRUE) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment