Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Modify the startup script to fix a package installation error #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions tailbone/compute_engine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@

STARTUP_SCRIPT_BASE = """#!/bin/bash

export DEBIAN_FRONTEND=noninteractive

# update open files limit
ulimit -n 10000

Expand Down
7 changes: 7 additions & 0 deletions tailbone/turn/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@ class TailboneTurnInstance(TailboneCEInstance):
while true
do
turnserver --use-auth-secret -v -a -X $IP -f --static-auth-secret %s -r %s

# Sometimes the packages fail to install due to no public key error.
aptitude install -y debian-keyring debian-archive-keyring
apt-get update
dpkg -i rfc5766-turn-server_3.2.3.6-1_amd64.deb
apt-get -fy install

sleep 1
done

Expand Down