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'])) {