feat: Update 2 files
All checks were successful
Build-Test-Publish / build (linux/amd64) (push) Successful in 38s
Build-Test-Publish / build (linux/arm64) (push) Successful in 1m10s

This commit is contained in:
Your Name
2025-08-30 18:39:26 +12:00
parent 642fbaaae8
commit dfe50b7fa9
2 changed files with 11 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
# This script is used to install the dropshell agent on a remote server.
SCRIPT_DIR=$(dirname "$0")
SCRIPT_DIR="$(cd "$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" && pwd)"
set -a

View File

@@ -498,7 +498,16 @@ complete -F _dropshell_completions dropshell
ASSERT(server_env.is_valid(), "Invalid server environment for " + server);
if (safearg(ctx.args, 1) == "all")
{
// install all services on the server
// First, install/update the dropshell agent on the server
maketitle("Updating dropshell agent on " + server);
int agent_result = install_server(server_env);
if (agent_result != 0)
{
error << "Failed to update dropshell agent on " << server << std::endl;
return agent_result;
}
// Then install all services on the server
maketitle("Installing all services on " + server);
bool okay = true;
std::vector<LocalServiceInfo> services = get_server_services_info(server);