Skip to content

Commit

Permalink
Adjust the paths in the crons
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Nov 3, 2024
1 parent cac8df9 commit 3e997e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions root/app/www/public/crons/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/

if (!defined('ABSOLUTE_PATH')) {
if (is_dir('app')) {
define('ABSOLUTE_PATH', 'app/www/public/');
if (is_dir('/app')) {
define('ABSOLUTE_PATH', '/app/www/public/');
} else {
if (file_exists('loader.php')) {
define('ABSOLUTE_PATH', './');
Expand Down
4 changes: 2 additions & 2 deletions root/app/www/public/crons/cleanup.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
*/

if (!defined('ABSOLUTE_PATH')) {
if (is_dir('app')) {
define('ABSOLUTE_PATH', 'app/www/public/');
if (is_dir('/app')) {
define('ABSOLUTE_PATH', '/app/www/public/');
} else {
if (file_exists('loader.php')) {
define('ABSOLUTE_PATH', './');
Expand Down

0 comments on commit 3e997e4

Please sign in to comment.