diff --git a/README.md b/README.md index 07a9881..d0f9ac5 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,16 @@ The support response time is currently about ~1-2 weeks. Users helping each othe > 👍🏾 Consider [purchasing](https://chevereto.com/pricing) a license to get the entire pack of features, an extra layer of support, and to sustain the development of this software. +## Known issues + +### Can't write into `/app/install/update/temp/` path + +Older releases (`1.2.0` and below) are missing the temp folder required for the one-click update process. Simply create the folder for the `www-data` user: + +```sh +sudo -u www-data mkdir /var/www/html/app/install/update/temp/ +``` + ## 🤯 Next-gen in the works Chevereto is being modernized by updating its stack and turning towards Open Source. [Read all updates](https://chevereto.com/community/threads/building-the-next-gen-chevereto.11140/) and check the [Chevere Framework](https://chevere.org/). diff --git a/app/install/update/temp/.gitignore b/app/install/update/temp/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/app/install/update/temp/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/app/install/update/updater.php b/app/install/update/updater.php index 08ba1e2..f518a2a 100644 --- a/app/install/update/updater.php +++ b/app/install/update/updater.php @@ -35,9 +35,6 @@ try { throw new Exception(sprintf("Can't write into root %s path", G\absolute_to_relative(G_ROOT_PATH))); } $update_temp_dir = CHV_APP_PATH_INSTALL . 'update/temp/'; - if (!is_writable($update_temp_dir)) { - throw new Exception(sprintf("Can't write into %s path", G\absolute_to_relative($update_temp_dir))); - } if (!isset($_REQUEST['action'])) { $doctitle = _s('Update in progress'); $system_template = CHV_APP_PATH_CONTENT_SYSTEM . 'template.php'; diff --git a/app/lib/integrity-check.php b/app/lib/integrity-check.php index 7c779c0..1d4e981 100644 --- a/app/lib/integrity-check.php +++ b/app/lib/integrity-check.php @@ -120,7 +120,7 @@ function check_system_integrity() /*** Folders check ***/ - $writing_paths = [CHV_PATH_IMAGES, CHV_PATH_CONTENT, CHV_APP_PATH_CONTENT, CHV_APP_PATH_CONTENT_LOCKS]; + $writing_paths = [CHV_PATH_IMAGES, CHV_PATH_CONTENT, CHV_APP_PATH_CONTENT, CHV_APP_PATH_CONTENT_LOCKS, CHV_APP_PATH_INSTALL . 'update/temp/']; foreach ($writing_paths as $v) { if (!file_exists($v)) { // Exists? if (!@mkdir($v)) {