commit c06943a12c5ff0ab2e401cc06215ac4ef517b096
parent 6a1ae0629bbc483aeec249435e91d9e95883edaa
Author: markseuffert <mark2011@mayberg.se>
Date: Thu, 19 Feb 2026 23:25:09 +0100
Updates installer
Diffstat:
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/.gitattributes b/.gitattributes
@@ -1,5 +1,4 @@
.github export-ignore
.gitattributes export-ignore
-license.md export-ignore
readme*.md export-ignore
screenshot*.png export-ignore
diff --git a/readme.md b/readme.md
@@ -6,7 +6,7 @@ Datenstrom Yellow is for people who make small websites. [Try the demo](https://
## How to get started
-Download one file, unzip it and copy everything to your web server. Your website is immediately available. The most important things are included. You can add more features later. There are extensions with additional features, languages and themes that you can install. Behind the minimalist design lies powerful technology. [Get started](https://datenstrom.se/yellow/help/how-to-get-started).
+Download one file, unzip it and copy everything to your web server. Your website is immediately available. The most important things are included. You can add more later. There are extensions with additional features, languages and themes that you can install. Behind the minimalist design lies powerful technology. [Get started](https://datenstrom.se/yellow/help/how-to-get-started).
## How to get extensions
diff --git a/system/extensions/update-installed.ini b/system/extensions/update-installed.ini
@@ -62,13 +62,13 @@ media/images/photo.jpg: photo.jpg, create, optional
media/thumbnails/photo-100x40.jpg: photo-100x40.jpg, create, optional
Extension: Install
-Version: 0.9.9
+Version: 0.9.10
Description: Install a brand new website.
Developer: Anna Svensson
DownloadUrl: https://github.com/annaesvensson/yellow-install/archive/refs/heads/main.zip
DocumentationUrl: https://github.com/annaesvensson/yellow-install
DocumentationLanguage: en, de, sv
-Published: 2026-02-17 15:55:22
+Published: 2026-02-19 22:47:16
Status: unassembled
system/workers/install.php: install.php, create
system/workers/install-language.bin: install-language.bin, compress @source/yellow-language/, create
diff --git a/system/workers/install.php b/system/workers/install.php
@@ -2,7 +2,7 @@
// Install extension, https://github.com/annaesvensson/yellow-install
class YellowInstall {
- const VERSION = "0.9.9";
+ const VERSION = "0.9.10";
const PRIORITY = "1";
public $yellow; // access to API
@@ -288,6 +288,12 @@ class YellowInstall {
public function removeInstall($log = false) {
$statusCode = 200;
if (function_exists("opcache_reset")) opcache_reset();
+ $this->yellow->toolbox->deleteFile("license.md");
+ $fileName = $this->yellow->system->get("coreWorkerDirectory")."install.php";
+ if (!$this->yellow->toolbox->deleteFile($fileName)) {
+ $statusCode = 500;
+ $this->yellow->page->error($statusCode, "Can't delete file '$fileName'!");
+ }
$path = $this->yellow->system->get("coreWorkerDirectory");
foreach ($this->yellow->toolbox->getDirectoryEntries($path, "/^install-.*\.bin$/", true, false) as $entry) {
if (!$this->yellow->toolbox->deleteFile($entry)) {
@@ -295,11 +301,6 @@ class YellowInstall {
$this->yellow->page->error($statusCode, "Can't delete file '$entry'!");
}
}
- $fileName = $this->yellow->system->get("coreWorkerDirectory")."install.php";
- if ($statusCode==200 && !$this->yellow->toolbox->deleteFile($fileName)) {
- $statusCode = 500;
- $this->yellow->page->error($statusCode, "Can't delete file '$fileName'!");
- }
if ($statusCode==200) unset($this->yellow->extension->data["install"]);
$fileName = $this->yellow->system->get("coreExtensionDirectory").$this->yellow->system->get("updateInstalledFile");
$fileData = $this->yellow->toolbox->readFile($fileName);