Skip to content

Commit 237f7e2

Browse files
authored
Update cockpit listen.conf deployment
1 parent e799e67 commit 237f7e2

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

setup.sh

+7-11
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,17 @@
22
sudo apt update -y
33
sudo apt install cockpit ffmpeg python3-pip -y
44
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/
117
sudo systemctl daemon-reload
128
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/
1612
chmod 644 /etc/webcast/webcast.conf /etc/webcast/webcast.key
1713
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/
2016
sudo systemctl daemon-reload
2117
sudo systemctl enable --now webcast.timer
2218
sudo systemctl enable --now webcast-api.service

0 commit comments

Comments
 (0)