Skip to content

Commit

Permalink
add attr 'i' to INIT_DATE_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
cremesk committed Apr 26, 2024
1 parent 186f37c commit 27e3b22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions init_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;;
Expand Down Expand Up @@ -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

Expand All @@ -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'
Expand Down
1 change: 1 addition & 0 deletions salt/freifunk/base/ddmesh/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- user: root
- group: root
- mode: 600
- attrs: i
- replace: false
{# cron #}
Expand Down

0 comments on commit 27e3b22

Please sign in to comment.