_ on backup and install scripts

This commit is contained in:
Your Name 2025-04-21 15:10:08 +12:00
parent a65fbe0bc5
commit 01e16d9623

View File

@ -143,7 +143,7 @@ bool server_service::install() {
}
// Run install script
std::string install_cmd = ssh_cmd.str() + "'cd " + service_dir + "/template && /bin/bash install.sh " +
std::string install_cmd = ssh_cmd.str() + "'cd " + service_dir + "/template && /bin/bash _install.sh " +
service_dir + "/" + m_service_name + ".env'";
if (system(install_cmd.c_str()) != 0) {
std::cerr << "Error: Failed to run install script" << std::endl;
@ -270,7 +270,7 @@ bool server_service::backup() {
// Run backup script
std::string backup_cmd = ssh_cmd.str() + "'cd " + script_dir +
" && /bin/bash backup.sh " + env_path + " " + server_backup_path + "'";
" && /bin/bash _backup.sh " + env_path + " " + server_backup_path + "'";
if (system(backup_cmd.c_str()) != 0) {
std::cerr << "Error: Backup script failed" << std::endl;
return false;