diff --git a/roles/nam/roles/virtual-machine-server.bash b/roles/nam/roles/virtual-machine-server.bash index 3c9b2b4d..9c092e7c 100755 --- a/roles/nam/roles/virtual-machine-server.bash +++ b/roles/nam/roles/virtual-machine-server.bash @@ -19,7 +19,7 @@ function main() if [[ "$(existUserLogin "${firstLoginUser}")" = 'true' ]] then addUserToSudoWithoutPassword "${firstLoginUser}" - autoSudo "${firstLoginUser}" "$(getProfileFilePath "${firstLoginUser}")" + autoSudo "${firstLoginUser}" "$(basename "$(getProfileFilePath "${firstLoginUser}")")" addUserAuthorizedKey "${firstLoginUser}" "${firstLoginUser}" "$(cat "${appFolderPath}/../files/authorized_keys")" fi