From 27e3b22ca93cafbea2f03d259be7380fe1737d1e Mon Sep 17 00:00:00 2001 From: creme Date: Fri, 26 Apr 2024 08:29:30 +0200 Subject: [PATCH] add attr 'i' to INIT_DATE_FILE --- init_server.sh | 7 +++---- salt/freifunk/base/ddmesh/init.sls | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init_server.sh b/init_server.sh index eeb0a039..66c3a861 100755 --- a/init_server.sh +++ b/init_server.sh @@ -232,7 +232,7 @@ elif [ "$os_id" = 'ubuntu' ]; then 20.04*) PKGMNGR='apt-get' ; check_salt_repo ubuntu20 install_uci ubuntu20 ;; - 22.04*) PKGMNGR='apt-get' ; + 22.04*) PKGMNGR='apt-get' install_uci ubuntu22 ;; *) print_not_supported_os ;; @@ -369,7 +369,7 @@ if [ -f "$INIT_DATE_FILE" ]; then else printf '\n### Start Initial System .. please wait! Coffee Time ~ 10min ..\n' printf '# Please do not delete this file!\n#\nFFDD-Server - INIT DATE: %s\n' "$(date -u)" > "$INIT_DATE_FILE" - chmod 600 "$INIT_DATE_FILE" + chmod 600 "$INIT_DATE_FILE" ; chattr +i "$INIT_DATE_FILE" _init_run='1' fi @@ -390,8 +390,7 @@ fi if [ "$OPT_UPDATE" = '0' ]; then # reset temporary disabled autoupdate - uci set ffdd.sys.autoupdate="$tmp_au" - uci commit + uci set ffdd.sys.autoupdate="$tmp_au" ; uci commit fi printf '\n### Cleanup System ..\n\n' diff --git a/salt/freifunk/base/ddmesh/init.sls b/salt/freifunk/base/ddmesh/init.sls index 72da7fa0..fd407776 100644 --- a/salt/freifunk/base/ddmesh/init.sls +++ b/salt/freifunk/base/ddmesh/init.sls @@ -18,6 +18,7 @@ - user: root - group: root - mode: 600 + - attrs: i - replace: false {# cron #}