File tree 1 file changed +7
-11
lines changed
1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 2
2
sudo apt update -y
3
3
sudo apt install cockpit ffmpeg python3-pip -y
4
4
sudo python3 -m pip install requests flask psutil pam
5
- sudo mkdir /etc/systemd/system/cockpit.socket.d
6
- sudo cat > /etc/systemd/system/cockpit.socket.d/listen.conf << EOF
7
- [Socket]
8
- ListenStream=
9
- ListenStream=443
10
- EOF
5
+ sudo cp -r code/cockpit.socket.d/ /etc/systemd/system/
6
+ sudo chown -R root:root /etc/systemd/system/cockpit.socket.d/
11
7
sudo systemctl daemon-reload
12
8
sudo systemctl restart cockpit.socket
13
- sudo cp code/services/* /etc/systemd/system
14
- sudo cp -r code/webcast /etc
15
- sudo chown -R webcast:webcast /etc/webcast
9
+ sudo cp code/services/* /etc/systemd/system/
10
+ sudo cp -r code/webcast/ /etc/
11
+ sudo chown -R webcast:webcast /etc/webcast/
16
12
chmod 644 /etc/webcast/webcast.conf /etc/webcast/webcast.key
17
13
chmod 775 /etc/webcast/webcast.py /etc/webcast/webcast-monitor.py
18
- chmod 775 -R /etc/webcast/api
19
- sudo cp -r code/webcastconfig /usr/share/cockpit
14
+ chmod 775 -R /etc/webcast/api/
15
+ sudo cp -r code/webcastconfig/ /usr/share/cockpit/
20
16
sudo systemctl daemon-reload
21
17
sudo systemctl enable --now webcast.timer
22
18
sudo systemctl enable --now webcast-api.service
You can’t perform that action at this time.
0 commit comments