diff --git a/src/freedombone-app-peertube b/src/freedombone-app-peertube index 07b889555fff3569398bc44050e04cda2281b473..8a5bd3dcdd970d93c605de132282cdd096aa454a 100755 --- a/src/freedombone-app-peertube +++ b/src/freedombone-app-peertube @@ -202,8 +202,10 @@ function install_peertube_base { peertube_tcp_tuning cd ${PEERTUBE_DIR} || exit 72 + $peertube_local_install webpack zone.js popper.js jquery @angular/core $peertube_local_install $peertube_local_fix + chown -R peertube:peertube ${PEERTUBE_DIR} } function peertube_setting_registration { @@ -631,6 +633,7 @@ function upgrade_peertube { read_config_param PEERTUBE_DOMAIN_NAME systemctl stop peertube + systemctl stop redis # recreate the link to the latest version cd "$PEERTUBE_DIR" || return @@ -642,7 +645,12 @@ function upgrade_peertube { PEERTUBE_ADMIN_PASSWORD=$(grep "password: '" "$PEERTUBE_DIR/config/production.yaml" | awk -F "'" '{print $2}') read_config_param MY_EMAIL_ADDRESS 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 if [ -d $PEERTUBE_DIR/.cache ]; then @@ -650,7 +658,8 @@ function upgrade_peertube { fi peertube_database_extensions - + + systemctl start redis systemctl start peertube set_completion_param "peertube version" "$PEERTUBE_VERSION" @@ -1357,6 +1366,7 @@ function install_peertube { systemctl enable peertube systemctl daemon-reload systemctl start peertube + systemctl start redis increment_app_install_progress