You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/10/15 07:44:12 UTC

[GitHub] markusthoemmes commented on a change in pull request #4068: Change config location to work with non root user

markusthoemmes commented on a change in pull request #4068: Change config location to work with non root user
URL: https://github.com/apache/incubator-openwhisk/pull/4068#discussion_r225065206
 
 

 ##########
 File path: common/scala/transformEnvironment.sh
 ##########
 @@ -43,6 +43,9 @@ fi
 if [ -n "$config" ]
 then
     location="/config.conf"
+    if [ -n "$NOT_ROOT_USER" ]; then
+        location="/home/$NOT_ROOT_USER/config.conf"
+    fi
 
 Review comment:
   That makes sense to me. Should we always write to the current user's home directory to make the script as simple as possible?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services