diff options
author | Gérald Niel <gerald.niel@gegeweb.org> | 2018-03-19 22:06:21 +0100 |
---|---|---|
committer | Gérald Niel <gerald.niel@gegeweb.org> | 2018-03-19 22:06:21 +0100 |
commit | 1069d3a4dc322da05866f17755b2d2ecc99fcfe8 (patch) | |
tree | 3d86cfd8fc26032e4b2e37ea04949744f0a9d7ed /scripts | |
parent | 0960af624e24430238277d0011706e97eeee8c77 (diff) | |
download | PeerTube-1069d3a4dc322da05866f17755b2d2ecc99fcfe8.tar.gz PeerTube-1069d3a4dc322da05866f17755b2d2ecc99fcfe8.tar.zst PeerTube-1069d3a4dc322da05866f17755b2d2ecc99fcfe8.zip |
Update shebang and date to POSIX format for working on FreeBSD (not
tested on Linux)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/upgrade.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 9baf50932..a0abe7ea6 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh | |||
@@ -1,10 +1,10 @@ | |||
1 | #!/bin/bash | 1 | #!/usr/bin/env bash |
2 | 2 | ||
3 | # Strict mode | 3 | # Strict mode |
4 | set -e | 4 | set -e |
5 | 5 | ||
6 | # Backup database | 6 | # Backup database |
7 | SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date -Im).bak" | 7 | SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%h%m\").bak" |
8 | mkdir -p /var/www/peertube/backup | 8 | mkdir -p /var/www/peertube/backup |
9 | pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" | 9 | pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH" |
10 | 10 | ||