From bed94bed6e19b35caab5cfbd10b60c6814e82e07 Mon Sep 17 00:00:00 2001 From: Gagan Deep Date: Tue, 5 Jul 2022 19:42:23 +0530 Subject: [PATCH] [chores] QA fixes --- images/common/init_command.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/common/init_command.sh b/images/common/init_command.sh index f3a537e9..0c3a0f7a 100644 --- a/images/common/init_command.sh +++ b/images/common/init_command.sh @@ -54,14 +54,14 @@ elif [ "$MODULE_NAME" = 'wireguard' ]; then # sudo raises "unable to resolve host" error if host networking # is used for this container. Hence, hostname is added to # /etc/hosts here. - echo "127.0.0.1 $(hostname)" >> /etc/hosts + echo "127.0.0.1 $(hostname)" >>/etc/hosts # The image is started with the root user. This sets the # environment variables only for the root user. # These environment variables are required when script is # executed by the "openwisp" user through cronjob, hence # the environment variables are saved in this file which # is loaded by the shell. - env >> /etc/environment + env >>/etc/environment sudo -u openwisp -E bash -c "source utils.sh; wireguard_setup" elif [ "$MODULE_NAME" = 'wireguard_updater' ]; then