-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
19 lines (19 loc) · 814 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
sudo apt update -y
sudo apt install cockpit ffmpeg python3-pip -y
sudo python3 -m pip install requests flask psutil pam
sudo cp -r code/cockpit.socket.d/ /etc/systemd/system/
sudo chown -R root:root /etc/systemd/system/cockpit.socket.d/
sudo systemctl daemon-reload
sudo systemctl restart cockpit.socket
sudo cp code/services/* /etc/systemd/system/
sudo cp -r code/webcast/ /etc/
sudo chown -R webcast:webcast /etc/webcast/
chmod 644 /etc/webcast/webcast.conf /etc/webcast/webcast.key
chmod 775 /etc/webcast/webcast.py /etc/webcast/webcast-monitor.py
chmod 775 -R /etc/webcast/api/
sudo cp -r code/webcastconfig/ /usr/share/cockpit/
sudo systemctl daemon-reload
sudo systemctl enable --now webcast.timer
sudo systemctl enable --now webcast-api.service
sudo systemctl enable --now webcast-monitor.timer