fixes update temp folder
parent
ed47a3c524
commit
43ba1c5e49
10
README.md
10
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.
|
> 👍🏾 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
|
## 🤯 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/).
|
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/).
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
*
|
||||||
|
!.gitignore
|
|
@ -35,9 +35,6 @@ try {
|
||||||
throw new Exception(sprintf("Can't write into root %s path", G\absolute_to_relative(G_ROOT_PATH)));
|
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/';
|
$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'])) {
|
if (!isset($_REQUEST['action'])) {
|
||||||
$doctitle = _s('Update in progress');
|
$doctitle = _s('Update in progress');
|
||||||
$system_template = CHV_APP_PATH_CONTENT_SYSTEM . 'template.php';
|
$system_template = CHV_APP_PATH_CONTENT_SYSTEM . 'template.php';
|
||||||
|
|
|
@ -120,7 +120,7 @@ function check_system_integrity()
|
||||||
|
|
||||||
/*** Folders check ***/
|
/*** 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) {
|
foreach ($writing_paths as $v) {
|
||||||
if (!file_exists($v)) { // Exists?
|
if (!file_exists($v)) { // Exists?
|
||||||
if (!@mkdir($v)) {
|
if (!@mkdir($v)) {
|
||||||
|
|
Loading…
Reference in New Issue