Update install.sh

This commit is contained in:
2026-01-15 13:33:18 +00:00
parent a6718ab7ca
commit 38b50697c1

View File

@@ -88,6 +88,27 @@ if ! curl -sSL -o /usr/local/bin/tinkerbell https://github.com/tinkerbell/tinker
exit 1
else
chmod +x /usr/local/bin/tinkerbell
cat <<EOT > /etc/systemd/system/tinkerbell.service
[Unit]
Description=Tinkerbell is a bare metal provisioning engine.
After=docker.service
[Service]
User=root
WorkingDirectory=/etc/tinkerbell
LimitNOFILE=4096
PIDFile=/var/run/tinkerbell/daemon.pid
ExecStart=/usr/local/bin/tinkerbell
Restart=on-failure
StartLimitInterval=600
[Install]
WantedBy=multi-user.target
EOT
systemctl daemon-reload > /dev/null 2>&1
fi
}