Skip to content

Commit

Permalink
scripts FEATURE allow openssl path override
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Nov 26, 2021
1 parent e70b9c9 commit e34c5df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/merge_hostkey.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ else
SYSREPOCFG=`which sysrepocfg`
fi

# avoid problems with sudo PATH
if [ `id -u` -eq 0 ]; then
if [ -n "$OPENSSL_EXECUTABLE" ]; then
OPENSSL="$OPENSSL_EXECUTABLE"
elif [ `id -u` -eq 0 ]; then
OPENSSL=`su -c 'which openssl' -l $USER`
else
OPENSSL=`which openssl`
Expand Down

0 comments on commit e34c5df

Please sign in to comment.