Browse Source

Permitted "srv0-gem env"

Dmitry Yu Okunev 4 years ago
parent
commit
e93ccc2144
2 changed files with 4 additions and 1 deletions
  1. 1 1
      _context-chruby-run
  2. 3 0
      remotewrapper-gem

+ 1 - 1
_context-chruby-run

@@ -23,7 +23,7 @@ fi
 
 mount --bind /srv/share/nfs/opt/"$CONTEXT" /opt
 source /usr/local/share/chruby/chruby.sh
-chruby "$RUBYVERSION"
+chruby "$RUBYVERSION" &&
 runuser -u nobody -g "$CONTEXT" $@
 RC="$?"
 umount -l /opt

+ 3 - 0
remotewrapper-gem

@@ -45,6 +45,9 @@ cmd_proc() {
 		list)
 			run list $@
 			;;
+		env)
+			run env $@
+			;;
 		build)
 			forbidden $@
 			;;