ghantoos / lshell

lshell is a shell coded in Python, that lets you restrict a user's environment to limited sets of commands, choose to enable/disable any command over SSH (e.g. SCP, SFTP, rsync, etc.), log user's commands, implement timing restriction, and more.
GNU General Public License v3.0
434 stars 113 forks source link

Define one or more paths to set environment variables from a file #194

Open stijnh92 opened 5 years ago

stijnh92 commented 5 years ago

This change will allow you to define one or more paths to a file that contains environment variables. The format should be just like you would set env vars in the lshell.

Example file:

export LOG_LEVEL='debug'
export LANG='en_US'

The builtin export method is used to set the environment variables.