From: GĂ©rald Niel Date: Mon, 19 Mar 2018 21:06:21 +0000 (+0100) Subject: Update shebang and date to POSIX format for working on FreeBSD (not X-Git-Tag: v1.0.0-beta.1~5^2~2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1069d3a4dc322da05866f17755b2d2ecc99fcfe8;p=oweals%2Fpeertube.git Update shebang and date to POSIX format for working on FreeBSD (not tested on Linux) --- 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 @@ -#!/bin/bash +#!/usr/bin/env bash # Strict mode set -e # Backup database -SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date -Im).bak" +SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%h%m\").bak" mkdir -p /var/www/peertube/backup pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"