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

Peertube tcp tuning

parent bf927f8c
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,13 @@ peertube_variables=(PEERTUBE_DOMAIN_NAME
ARCHITECTURE
MY_EMAIL_ADDRESS)
function peertube_tcp_tuning {
if [ -f "$PEERTUBE_DIR/support/sysctl.d/30-peertube-tcp.conf" ]; then
cp "$PEERTUBE_DIR/support/sysctl.d/30-peertube-tcp.conf" /etc/sysctl.d/
sysctl -p /etc/sysctl.d/30-peertube-tcp.conf
fi
}
function peertube_setting_registration {
allow_registrations="$1"
......@@ -490,6 +497,8 @@ function upgrade_peertube {
sudo -u postgres psql peertube -c 'CREATE EXTENSION IF NOT EXISTS unaccent;'
sudo -u postgres psql peertube -c 'CREATE EXTENSION IF NOT EXISTS pg_trgm;'
peertube_tcp_tuning
systemctl start peertube
}
......@@ -1026,6 +1035,8 @@ function install_peertube {
git checkout $PEERTUBE_COMMIT -b $PEERTUBE_COMMIT
set_completion_param "peertube commit" "$PEERTUBE_COMMIT"
peertube_tcp_tuning
if ! npm install -g yarn@1.10.1; then
echo $'Failed to install yarn'
exit 79353234
......
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