install_newt.sh aktualisiert
This commit is contained in:
@@ -74,12 +74,13 @@ cleanup_old_versions() {
|
|||||||
|
|
||||||
setup_systemd_service() {
|
setup_systemd_service() {
|
||||||
info "🛠️ Erstelle systemd-Dienst ${SERVICE_NAME} ..."
|
info "🛠️ Erstelle systemd-Dienst ${SERVICE_NAME} ..."
|
||||||
|
|
||||||
|
# Eingabeaufforderungen im User-Kontext
|
||||||
read -rp "🆔 Bitte gib die Pangolin-ID ein: " PANGOLIN_ID
|
read -rp "🆔 Bitte gib die Pangolin-ID ein: " PANGOLIN_ID
|
||||||
read -rp "🔑 Bitte gib das Secret ein: " PANGOLIN_SECRET
|
read -rp "🔑 Bitte gib das Secret ein: " PANGOLIN_SECRET
|
||||||
read -rp "🌐 Bitte gib den Endpoint (z. B. https://pangolin.domain.de) ein: " PANGOLIN_ENDPOINT
|
read -rp "🌐 Bitte gib den Endpoint (z. B. https://pangolin.domain.de) ein: " PANGOLIN_ENDPOINT
|
||||||
|
|
||||||
cat <<EOF | sudo tee "$SERVICE_FILE" > /dev/null
|
SERVICE_CONTENT="[Unit]
|
||||||
[Unit]
|
|
||||||
Description=Newt Client - ${SERVICE_NAME}
|
Description=Newt Client - ${SERVICE_NAME}
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
@@ -89,8 +90,9 @@ Restart=always
|
|||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target"
|
||||||
EOF
|
|
||||||
|
echo "$SERVICE_CONTENT" | sudo tee "$SERVICE_FILE" > /dev/null
|
||||||
|
|
||||||
sudo systemctl daemon-reexec
|
sudo systemctl daemon-reexec
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
|
|||||||
Reference in New Issue
Block a user