Update backup command execution to use bash shell in multiple backup utilities

- Modified the `execAsync` calls in `compose.ts`, `mariadb.ts`, `mongo.ts`, and `mysql.ts` to specify the bash shell for executing backup commands, ensuring compatibility with bash-specific features across all backup utilities.
This commit is contained in:
Mauricio Siu
2025-05-05 02:52:50 -06:00
parent 79372527e6
commit 45cf295be0
4 changed files with 12 additions and 4 deletions

View File

@@ -38,7 +38,9 @@ export const runComposeBackup = async (
if (compose.serverId) {
await execAsyncRemote(compose.serverId, backupCommand);
} else {
await execAsync(backupCommand);
await execAsync(backupCommand, {
shell: "/bin/bash",
});
}
await sendDatabaseBackupNotifications({

View File

@@ -37,7 +37,9 @@ export const runMariadbBackup = async (
if (mariadb.serverId) {
await execAsyncRemote(mariadb.serverId, backupCommand);
} else {
await execAsync(backupCommand);
await execAsync(backupCommand, {
shell: "/bin/bash",
});
}
await sendDatabaseBackupNotifications({

View File

@@ -35,7 +35,9 @@ export const runMongoBackup = async (mongo: Mongo, backup: BackupSchedule) => {
if (mongo.serverId) {
await execAsyncRemote(mongo.serverId, backupCommand);
} else {
await execAsync(backupCommand);
await execAsync(backupCommand, {
shell: "/bin/bash",
});
}
await sendDatabaseBackupNotifications({

View File

@@ -37,7 +37,9 @@ export const runMySqlBackup = async (mysql: MySql, backup: BackupSchedule) => {
if (mysql.serverId) {
await execAsyncRemote(mysql.serverId, backupCommand);
} else {
await execAsync(backupCommand);
await execAsync(backupCommand, {
shell: "/bin/bash",
});
}
await sendDatabaseBackupNotifications({
applicationName: name,