Merge pull request #1827 from Dokploy/fix/backups-shell

Update backup command execution to use bash shell in multiple backup …
This commit is contained in:
Mauricio Siu 2025-05-05 02:54:10 -06:00 committed by GitHub
commit c7c01f57d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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,