mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
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:
@@ -38,7 +38,9 @@ export const runComposeBackup = async (
|
|||||||
if (compose.serverId) {
|
if (compose.serverId) {
|
||||||
await execAsyncRemote(compose.serverId, backupCommand);
|
await execAsyncRemote(compose.serverId, backupCommand);
|
||||||
} else {
|
} else {
|
||||||
await execAsync(backupCommand);
|
await execAsync(backupCommand, {
|
||||||
|
shell: "/bin/bash",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await sendDatabaseBackupNotifications({
|
await sendDatabaseBackupNotifications({
|
||||||
|
|||||||
@@ -37,7 +37,9 @@ export const runMariadbBackup = async (
|
|||||||
if (mariadb.serverId) {
|
if (mariadb.serverId) {
|
||||||
await execAsyncRemote(mariadb.serverId, backupCommand);
|
await execAsyncRemote(mariadb.serverId, backupCommand);
|
||||||
} else {
|
} else {
|
||||||
await execAsync(backupCommand);
|
await execAsync(backupCommand, {
|
||||||
|
shell: "/bin/bash",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await sendDatabaseBackupNotifications({
|
await sendDatabaseBackupNotifications({
|
||||||
|
|||||||
@@ -35,7 +35,9 @@ export const runMongoBackup = async (mongo: Mongo, backup: BackupSchedule) => {
|
|||||||
if (mongo.serverId) {
|
if (mongo.serverId) {
|
||||||
await execAsyncRemote(mongo.serverId, backupCommand);
|
await execAsyncRemote(mongo.serverId, backupCommand);
|
||||||
} else {
|
} else {
|
||||||
await execAsync(backupCommand);
|
await execAsync(backupCommand, {
|
||||||
|
shell: "/bin/bash",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
await sendDatabaseBackupNotifications({
|
await sendDatabaseBackupNotifications({
|
||||||
|
|||||||
@@ -37,7 +37,9 @@ export const runMySqlBackup = async (mysql: MySql, backup: BackupSchedule) => {
|
|||||||
if (mysql.serverId) {
|
if (mysql.serverId) {
|
||||||
await execAsyncRemote(mysql.serverId, backupCommand);
|
await execAsyncRemote(mysql.serverId, backupCommand);
|
||||||
} else {
|
} else {
|
||||||
await execAsync(backupCommand);
|
await execAsync(backupCommand, {
|
||||||
|
shell: "/bin/bash",
|
||||||
|
});
|
||||||
}
|
}
|
||||||
await sendDatabaseBackupNotifications({
|
await sendDatabaseBackupNotifications({
|
||||||
applicationName: name,
|
applicationName: name,
|
||||||
|
|||||||
Reference in New Issue
Block a user