mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-01 20:58:51 +00:00
tweaking
This commit is contained in:
parent
1f07f3c045
commit
ca454f663e
1 changed files with 9 additions and 4 deletions
|
@ -147,6 +147,10 @@ mySYSTEMDFIX="[Link]
|
|||
NamePolicy=kernel database onboard slot path
|
||||
MACAddressPolicy=none
|
||||
"
|
||||
myCOCKPIT_SOCKET="[Socket]
|
||||
ListenStream=
|
||||
ListenStream=64294
|
||||
"
|
||||
myCRONJOBS="
|
||||
# Check if updated images are available and download them
|
||||
27 1 * * * root docker-compose -f /opt/tpot/etc/tpot.yml pull
|
||||
|
@ -666,7 +670,8 @@ sed -i 's#127.0.1.1.*#127.0.1.1\t'"$myHOST"'#g' /etc/hosts
|
|||
|
||||
# Let's patch cockpit.socket, sshd_config
|
||||
fuBANNER "Adjust ports"
|
||||
sed -i 's#ListenStream=9090#ListenStream=64294#' /lib/systemd/system/cockpit.socket
|
||||
mkdir -p /etc/systemd/system/cockpit.socket.d
|
||||
echo "$myCOCKPIT_SOCKET" | tee /etc/systemd/system/cockpit.socket.d/listen.conf
|
||||
sed -i '/^port/Id' /etc/ssh/sshd_config
|
||||
echo "Port 64295" >> /etc/ssh/sshd_config
|
||||
|
||||
|
|
Loading…
Reference in a new issue