mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 23:04:22 +00:00
Fix more bugs in update_peertube
This commit is contained in:
parent
5b4a4d2553
commit
061c7a6b4c
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ function update_peertube
|
||||||
echo_progress "Creating backup dir..." \n
|
echo_progress "Creating backup dir..." \n
|
||||||
mkdir -p "$BACKUP_DIR"
|
mkdir -p "$BACKUP_DIR"
|
||||||
|
|
||||||
echo_progress "Dumping the database to the backup dir..."
|
echo_progress "Dumping the database to the backup dir..." \n
|
||||||
pg_dump -F custom "peertube_prod" > "$BACKUP_PATH"
|
pg_dump -F custom "peertube_prod" > "$BACKUP_PATH"
|
||||||
|
|
||||||
set -g VERSIONS_DIR "$INSTALL_DIR/versions"
|
set -g VERSIONS_DIR "$INSTALL_DIR/versions"
|
||||||
|
@ -48,7 +48,7 @@ function update_peertube
|
||||||
echo_highlight "$LATEST_DIR" \n
|
echo_highlight "$LATEST_DIR" \n
|
||||||
|
|
||||||
echo_progress "Giving back all permissions to: $PEERTUBE_USER" \n
|
echo_progress "Giving back all permissions to: $PEERTUBE_USER" \n
|
||||||
chmod -R "$PEERTUBE_USER:" "$INSTALL_DIR"
|
chown -R "$PEERTUBE_USER:" "$INSTALL_DIR"
|
||||||
|
|
||||||
echo_progress "Updating node dependencies..." \n
|
echo_progress "Updating node dependencies..." \n
|
||||||
sudo -i -u $PEERTUBE_USER yarn --cwd "$LATEST_DIR" install --production --pure-lockfile
|
sudo -i -u $PEERTUBE_USER yarn --cwd "$LATEST_DIR" install --production --pure-lockfile
|
||||||
|
|
Loading…
Reference in a new issue