diff --git a/install/agent-install.sh b/bin/agent-install.sh similarity index 100% rename from install/agent-install.sh rename to bin/agent-install.sh diff --git a/install/agent-uninstall.sh b/bin/agent-uninstall.sh similarity index 100% rename from install/agent-uninstall.sh rename to bin/agent-uninstall.sh diff --git a/src/Services/AgentService.php b/src/Services/AgentService.php index ea05604..ff97ab7 100644 --- a/src/Services/AgentService.php +++ b/src/Services/AgentService.php @@ -43,7 +43,7 @@ class AgentService $serverUrl = $scheme . $host; } - $scriptPath = $this->basePath . '/install/agent-install.sh'; + $scriptPath = $this->basePath . '/bin/agent-install.sh'; if (!file_exists($scriptPath)) { return ['success' => false, 'error' => 'Agent install script not found']; @@ -114,7 +114,7 @@ class AgentService $server = App::getEncryption()->decryptArray($server, ['ssh_password', 'ssh_key']); - $scriptPath = $this->basePath . '/install/agent-uninstall.sh'; + $scriptPath = $this->basePath . '/bin/agent-uninstall.sh'; if (!file_exists($scriptPath)) { return ['success' => false, 'error' => 'Agent uninstall script not found'];