From deea4d6a2ab497eadbf294df6fa59b864a0ac6bf Mon Sep 17 00:00:00 2001 From: Renan Bernordi Date: Thu, 26 Jun 2025 18:12:51 -0300 Subject: [PATCH] fixing cli commands --- {bin => app/bin}/cleanup | 6 +++--- {bin => app/bin}/proxy | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) rename {bin => app/bin}/cleanup (97%) rename {bin => app/bin}/proxy (97%) diff --git a/bin/cleanup b/app/bin/cleanup similarity index 97% rename from bin/cleanup rename to app/bin/cleanup index 76dc3d6..3ada0f2 100644 --- a/bin/cleanup +++ b/app/bin/cleanup @@ -9,7 +9,7 @@ * If CLEANUP_DAYS is not set, no files will be cleaned. */ -require_once __DIR__ . '/../app/vendor/autoload.php'; +require_once __DIR__ . '/../vendor/autoload.php'; use League\CLImate\CLImate; use Dotenv\Dotenv; @@ -23,7 +23,7 @@ $climate->br(); $cleanupDays = 0; try { - $dotenv = Dotenv::createImmutable(__DIR__ . '/../app'); + $dotenv = Dotenv::createImmutable(__DIR__ . '/..'); $dotenv->load(); $climate->out('Environment variables loaded'); $cleanupDays = $_ENV['CLEANUP_DAYS']; @@ -33,7 +33,7 @@ try { } if (!defined('CACHE_DIR')) { - define('CACHE_DIR', __DIR__ . '/../app/cache'); + define('CACHE_DIR', __DIR__ . '/../cache'); } if ($cleanupDays == 0) { diff --git a/bin/proxy b/app/bin/proxy similarity index 97% rename from bin/proxy rename to app/bin/proxy index 4065793..99cc8fe 100644 --- a/bin/proxy +++ b/app/bin/proxy @@ -13,7 +13,7 @@ * 2. IP:PORT:USER:PASSWORD */ -require_once __DIR__ . '/../app/vendor/autoload.php'; +require_once __DIR__ . '/../vendor/autoload.php'; use League\CLImate\CLImate; use Dotenv\Dotenv; @@ -24,7 +24,7 @@ $climate->bold()->out('Proxy List Cache Updater'); $climate->br(); try { - $dotenv = Dotenv::createImmutable(__DIR__ . '/../app'); + $dotenv = Dotenv::createImmutable(__DIR__ . '/..'); $dotenv->load(); $climate->out('Environment variables loaded'); } catch (\Exception $e) { @@ -33,7 +33,7 @@ try { } if (!defined('CACHE_DIR')) { - define('CACHE_DIR', __DIR__ . '/../app/cache'); + define('CACHE_DIR', __DIR__ . '/../cache'); } if (!isset($_ENV['PROXY_LIST']) || empty($_ENV['PROXY_LIST'])) {