-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstaller.sh
executable file
·63 lines (37 loc) · 1.33 KB
/
Installer.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Get Updates
apt update && apt upgrade -y
# Install packages to allow apt to use a repository over HTTPS:
apt install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
# Add Docker’s official GPG key:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Use the following command to set up the stable repository.
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Install Docker
apt update
apt install docker-ce git
# Install Docker Compose
curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
systemctl enable docker
useradd jitsi
usermod -L jitsi
groupadd docker
service docker restart
usermod -a -G docker jitsi
# Setup the Docker Container
rm -rf /home/jitsi/
mkdir /home/jitsi/
git clone https://github.com/jitsi/docker-jitsi-meet /home/jitsi/docker-jitsi-meet
rsync -avzP files/* /home/jitsi
bash /home/jitsi/docker-jitsi-meet/gen-passwords.sh
mkdir -p /home/jitsi/.jitsi-meet-cfg/{web/letsencrypt,transcripts,prosody,jicofo,jvb,html}
chown -R jitsi /home/jitsi
sudo -H -u jitsi bash -c 'cd /home/jitsi/docker-jitsi-meet && docker-compose up -d'