Skip to content

Commit

Permalink
[chores] QA fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Jul 5, 2022
1 parent db47f1f commit 2c46f33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/common/init_command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c46f33

Please sign in to comment.