diff --git a/source/src/commands/install.cpp b/source/src/commands/install.cpp index 819241c..4f40ad8 100644 --- a/source/src/commands/install.cpp +++ b/source/src/commands/install.cpp @@ -149,7 +149,13 @@ namespace dropshell // Run install script { info << "Running " << service_info.template_name << " install script on " << server << "..." << std::endl; - server_env.run_remote_template_command(service, "install", {}, false, {}); + + shared_commands::cRemoteTempFolder remote_temp_folder(server_env, user); + if (!server_env.run_remote_template_command(service, "install", {}, false, {{"TEMP_DIR", remote_temp_folder.path()}})) + { + error << "Failed to run install script on " << server << std::endl; + return false; + } } // print health tick