From 30f7cc7e3ca91fb7fcb15d83acfcadec5fe31c35 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 8 Jun 2023 21:18:03 +0200 Subject: startup: T5239: force removal of /etc/hostname Commit 4bbb382 ("startup: T5239: ensure system hostname is set before FRR starts") removed /etc/hostname but it cared about exit codes - always remove the file even if it does not exist (--force) --- scripts/init/vyos-router | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/init/vyos-router b/scripts/init/vyos-router index 2a05aa3..ec68db2 100755 --- a/scripts/init/vyos-router +++ b/scripts/init/vyos-router @@ -317,7 +317,7 @@ start () nfct helper add tns inet tcp nft -f /usr/share/vyos/vyos-firewall-init.conf || log_failure_msg "could not initiate firewall rules" - rm /etc/hostname + rm -f /etc/hostname ${vyos_conf_scripts_dir}/host_name.py || log_failure_msg "could not reset host-name" systemctl start frr.service -- cgit v1.2.3