From 509d97883f0dadbd6f293bc967ee513c2e8a255e Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Sat, 10 Apr 2021 13:18:46 +0200 Subject: [PATCH] Remove absolute path of keyfile when creating superuser Resolves #4 --- include/project.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/project.sh b/include/project.sh index 67f62c5..36652c2 100644 --- a/include/project.sh +++ b/include/project.sh @@ -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 @@ -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}"