fixes update temp folder

pull/72/head
Rodolfo Berrios 2020-08-28 15:09:56 -04:00
parent ed47a3c524
commit 43ba1c5e49
4 changed files with 13 additions and 4 deletions

View File

@ -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/).

2
app/install/update/temp/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*
!.gitignore

View File

@ -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';

View File

@ -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)) {