mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit c838ff69cdf37b9827ff763a31b7f592c849a58a
parent 605ea29387fe026ddce87685ec80bd0225fce319
Author: markseu <mark2011@mayberg.se>
Date:   Thu, 17 Mar 2022 00:17:50 +0100

Updated installation instructions, Murphy's law

Diffstat:
Msystem/extensions/install.php | 9++++-----
Msystem/extensions/update-current.ini | 4++--
2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/system/extensions/install.php b/system/extensions/install.php @@ -2,7 +2,7 @@ // Install extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/install class YellowInstall { - const VERSION = "0.8.64"; + const VERSION = "0.8.65"; const PRIORITY = "1"; public $yellow; // access to API @@ -69,14 +69,13 @@ class YellowInstall { if ($this->yellow->system->get("updateCurrentRelease")=="none") { $this->checkCommandRequirements(); $statusCode = $this->updateLog(); - if (empty($command)) { - $statusCode = 304; - echo "Your website is ready for installation. Please type 'php yellow.php serve'\n"; - } if ($command=="build" || $command=="clean") { if ($statusCode==200) $statusCode = $this->updateLanguages(); if ($statusCode==200) $statusCode = $this->updateSettings(); if ($statusCode==200) $statusCode = $this->removeInstall(); + } elseif ($command!="serve") { + $statusCode = 304; + echo "The installation has not been completed. Please type 'php yellow.php serve'\n"; } if ($statusCode>=400) { echo "ERROR installing files: ".$this->yellow->page->get("pageError")."\n"; diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -64,11 +64,11 @@ media/images/photo.jpg: photo.jpg, create, optional media/thumbnails/photo-100x40.jpg: photo-100x40.jpg, create, optional Extension: Install -Version: 0.8.64 +Version: 0.8.65 Description: Install a brand new, shiny website. HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/install DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/install.zip -Published: 2022-03-16 22:45:28 +Published: 2022-03-17 00:07:07 Developer: Datenstrom Status: unlisted system/extensions/install.php: install.php, create