mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
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:
commit
c7c01f57d4
@ -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({
|
||||
|
@ -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({
|
||||
|
@ -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({
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user