Fix upgrade script
This commit is contained in:
parent
1025ce5df9
commit
86dc0b9cc9
1 changed files with 4 additions and 4 deletions
|
@ -41,7 +41,7 @@ then
|
|||
DB_SUFFIX=$(node -e "console.log(require('js-yaml').load(fs.readFileSync('$PEERTUBE_PATH/config/production.yaml', 'utf8'))['database']['suffix'])")
|
||||
DB_NAME=$(node -e "console.log(require('js-yaml').load(fs.readFileSync('$PEERTUBE_PATH/config/production.yaml', 'utf8'))['database']['name'] || '')")
|
||||
mkdir -p $PEERTUBE_PATH/backup
|
||||
PGPASSWORD=$DB_PASS pg_dump -U $DB_USER -h $DB_HOST -F c "${DB_NAME:-'peertube${DB_SUFFIX}'}" -f "$SQL_BACKUP_PATH"
|
||||
PGPASSWORD=$DB_PASS pg_dump -U $DB_USER -h $DB_HOST -F c "${DB_NAME:-peertube${DB_SUFFIX}}" -f "$SQL_BACKUP_PATH"
|
||||
else
|
||||
echo "pg_dump not found. Cannot make a SQL backup!"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue