Skip to content

Commit

Permalink
Remove absolute path of keyfile when creating superuser
Browse files Browse the repository at this point in the history
Resolves #4
  • Loading branch information
bashlund committed Apr 10, 2021
1 parent a8768d1 commit 509d978
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2185,8 +2185,6 @@ _PRJ_HOST_CREATE_SUPERUSER()
eval "${varname}=\"\${value}\""
done

superKeyFile="$(cd "${CLUSTERPATH}/${host}" && FILE_REALPATH "${superKeyFile}")"

# If keyfile does not exist, we create it.
if [ ! -f "${superKeyFile}" ]; then
PRINT "Create super user keyfile: ${superKeyFile}" "info" 0
Expand Down Expand Up @@ -2246,7 +2244,7 @@ JUMPHOST=${JUMPHOST}" >"${hostEnv3}"
_PRJ_HOST_DISABLE_ROOT()
{
SPACE_SIGNATURE="host"
SPACE_DEP="_REMOTE_EXEC PRINT _PRJ_DOES_HOST_EXIST FILE_REALPATH STRING_TRIM"
SPACE_DEP="_REMOTE_EXEC PRINT _PRJ_DOES_HOST_EXIST STRING_TRIM"
SPACE_ENV="CLUSTERPATH"

local host="${1}"
Expand Down

0 comments on commit 509d978

Please sign in to comment.