From 6bbd476473c18c1b9ba363b4b879140f82a53bd0 Mon Sep 17 00:00:00 2001 From: olli Date: Tue, 18 Jul 2023 14:16:43 +0200 Subject: [PATCH] autoupdate.yml aktualisiert --- autoupdate.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoupdate.yml b/autoupdate.yml index 729da59..1087623 100644 --- a/autoupdate.yml +++ b/autoupdate.yml @@ -24,6 +24,7 @@ g_nice g_lockfile g_all-to-syslog + DISPLAY="" set -o pipefail for update in $(find /usr/local/sbin/autoupdate.d -name "*.update" -type f | sort) do @@ -94,7 +95,7 @@ mac=$(ip addr show $(ip route list | grep default | cut -d" " -f5) | grep "link/ether " | perl -pe 's/.*link\/ether //; s/:/-/g' | cut -d" " -f1) usr=$(getent passwd 1000 | cut -d: -f1) hst=$(hostname | cut -d. -f1 | perl -pe 's/ //g') - curl https://update.$(domainname -f)/${mac}--${usr}--${hst}.sh >${g_tmp}/update.sh + curl -s https://update.$(domainname -f)/${mac}--${usr}--${hst}.sh >${g_tmp}/update.sh head -n1 ${g_tmp}/update.sh | grep -q "^#!/bin/bash" && bash ${g_tmp}/update.sh fi backup: yes