projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1069d3a
)
Update shebang and date format for working on FreeBSD (fix typo)
author
Gérald Niel
<gerald.niel@gegeweb.org>
Mon, 19 Mar 2018 21:13:29 +0000
(22:13 +0100)
committer
Gérald Niel
<gerald.niel@gegeweb.org>
Mon, 19 Mar 2018 21:13:29 +0000
(22:13 +0100)
(not tested on Linux)
scripts/upgrade.sh
patch
|
blob
|
history
diff --git
a/scripts/upgrade.sh
b/scripts/upgrade.sh
index a0abe7ea61a7faaa2f899edb689c37c4d69d2db1..bd90ce56020133992ab3cb10574d9d9427a59cd6 100755
(executable)
--- a/
scripts/upgrade.sh
+++ b/
scripts/upgrade.sh
@@
-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"