Update shebang and date format for working on FreeBSD (fix typo)
authorGérald Niel <gerald.niel@gegeweb.org>
Mon, 19 Mar 2018 21:13:29 +0000 (22:13 +0100)
committerGérald Niel <gerald.niel@gegeweb.org>
Mon, 19 Mar 2018 21:13:29 +0000 (22:13 +0100)
(not tested on Linux)

scripts/upgrade.sh

index a0abe7ea61a7faaa2f899edb689c37c4d69d2db1..bd90ce56020133992ab3cb10574d9d9427a59cd6 100755 (executable)
@@ -4,7 +4,7 @@
 set -e
 
 # Backup database
-SQL_BACKUP_PATH="/var/www/peertube/backup/sql-peertube_prod-$(date +\"%Y%m%d-%h%m\").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"