mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Add shebang to backup command script in utils.ts
- Introduced a shebang line to the backup command script for improved compatibility and execution in a bash environment. - This change enhances the script's portability and ensures it runs correctly in various shell contexts.
This commit is contained in:
@@ -220,6 +220,7 @@ export const getBackupCommand = (
|
|||||||
const containerSearch = getContainerSearchCommand(backup);
|
const containerSearch = getContainerSearchCommand(backup);
|
||||||
const backupCommand = generateBackupCommand(backup);
|
const backupCommand = generateBackupCommand(backup);
|
||||||
return `
|
return `
|
||||||
|
#!/bin/bash
|
||||||
set -eo pipefail;
|
set -eo pipefail;
|
||||||
echo "[$(date)] Starting backup process..." >> ${logPath};
|
echo "[$(date)] Starting backup process..." >> ${logPath};
|
||||||
echo "[$(date)] Executing backup command..." >> ${logPath};
|
echo "[$(date)] Executing backup command..." >> ${logPath};
|
||||||
|
|||||||
Reference in New Issue
Block a user