diff --git a/app/src/Commands/Instances/CreateCommand.php b/app/src/Commands/Instances/CreateCommand.php index eb2fa766..1a57be6e 100644 --- a/app/src/Commands/Instances/CreateCommand.php +++ b/app/src/Commands/Instances/CreateCommand.php @@ -108,7 +108,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int $host = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "host="))[1]; $https_proxy = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "https_proxy="))[1]; $http_scheme = "http://"; - if ($https_proxy) { + if ($https_proxy === "true") { $http_scheme = "https://"; } $instance_path = $options["target"] . "/" . $options["name"]; diff --git a/app/src/Commands/Pack/PackCreateCommand.php b/app/src/Commands/Pack/PackCreateCommand.php index 98f81c3f..16c36c41 100644 --- a/app/src/Commands/Pack/PackCreateCommand.php +++ b/app/src/Commands/Pack/PackCreateCommand.php @@ -109,7 +109,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int $host = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "host"))[1]; $https_proxy = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "https_proxy="))[1]; $http_scheme = "http://"; - if ($https_proxy) { + if ($https_proxy === "true") { $http_scheme = "https://"; } $instance_path = $options["target"] . "/" . $options["name"];