Skip to content

Commit

Permalink
Entrypoint update
Browse files Browse the repository at this point in the history
Empty secrets file now handles properly as well.
  • Loading branch information
Aeron committed Jun 22, 2022
1 parent be26596 commit af4e73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ compile_profile() {
}

get_secret() {
if [ ! -f /etc/ipsec.secrets ]; then
if [ ! -f /etc/ipsec.secrets ] || [ ! -s /etc/ipsec.secrets ]; then
echo ": PSK '$(openssl rand -base64 32)'" > /etc/ipsec.secrets
fi

Expand Down

0 comments on commit af4e73c

Please sign in to comment.