Skip to content
Snippets Groups Projects
Commit 6ceb3fa2 authored by Bob Mottram's avatar Bob Mottram
Browse files

Upgrade of peertube config file

parent 515a69ef
No related branches found
No related tags found
No related merge requests found
Pipeline #75565 failed
...@@ -202,8 +202,10 @@ function install_peertube_base { ...@@ -202,8 +202,10 @@ function install_peertube_base {
peertube_tcp_tuning peertube_tcp_tuning
cd ${PEERTUBE_DIR} || exit 72 cd ${PEERTUBE_DIR} || exit 72
$peertube_local_install webpack zone.js popper.js jquery @angular/core
$peertube_local_install $peertube_local_install
$peertube_local_fix $peertube_local_fix
chown -R peertube:peertube ${PEERTUBE_DIR}
} }
function peertube_setting_registration { function peertube_setting_registration {
...@@ -631,6 +633,7 @@ function upgrade_peertube { ...@@ -631,6 +633,7 @@ function upgrade_peertube {
read_config_param PEERTUBE_DOMAIN_NAME read_config_param PEERTUBE_DOMAIN_NAME
systemctl stop peertube systemctl stop peertube
systemctl stop redis
# recreate the link to the latest version # recreate the link to the latest version
cd "$PEERTUBE_DIR" || return cd "$PEERTUBE_DIR" || return
...@@ -642,7 +645,12 @@ function upgrade_peertube { ...@@ -642,7 +645,12 @@ function upgrade_peertube {
PEERTUBE_ADMIN_PASSWORD=$(grep "password: '" "$PEERTUBE_DIR/config/production.yaml" | awk -F "'" '{print $2}') PEERTUBE_ADMIN_PASSWORD=$(grep "password: '" "$PEERTUBE_DIR/config/production.yaml" | awk -F "'" '{print $2}')
read_config_param MY_EMAIL_ADDRESS read_config_param MY_EMAIL_ADDRESS
peertube_create_config peertube_create_config
cp "$PEERTUBE_DIR/config/production.yaml" "$PEERTUBE_DIR/config/production.upgrading"
cd "$PEERTUBE_DIR/versions/${PEERTUBE_DOWNLOAD_FILENAME}" || return
./scripts/upgrade.sh "$PEERTUBE_DIR"
cp "$PEERTUBE_DIR/config/production.upgrading" "$PEERTUBE_DIR/config/production.yaml"
chown -R peertube:peertube $PEERTUBE_DIR chown -R peertube:peertube $PEERTUBE_DIR
if [ -d $PEERTUBE_DIR/.cache ]; then if [ -d $PEERTUBE_DIR/.cache ]; then
...@@ -650,7 +658,8 @@ function upgrade_peertube { ...@@ -650,7 +658,8 @@ function upgrade_peertube {
fi fi
peertube_database_extensions peertube_database_extensions
systemctl start redis
systemctl start peertube systemctl start peertube
set_completion_param "peertube version" "$PEERTUBE_VERSION" set_completion_param "peertube version" "$PEERTUBE_VERSION"
...@@ -1357,6 +1366,7 @@ function install_peertube { ...@@ -1357,6 +1366,7 @@ function install_peertube {
systemctl enable peertube systemctl enable peertube
systemctl daemon-reload systemctl daemon-reload
systemctl start peertube systemctl start peertube
systemctl start redis
increment_app_install_progress increment_app_install_progress
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment