abcdesktopio / pyos

abcdesktop API services
https://abcdesktopio.github.io/
GNU General Public License v2.0
2 stars 2 forks source link

appendpathtomounthomevolume #15

Closed alexandredevely closed 3 months ago

alexandredevely commented 3 months ago

add desktop.appendpathtomounthomevolume The new option is desktop.appendpathtomounthomevolume (it’s a string)

You need to set this value to ‘..’ desktop.appendpathtomounthomevolume: '..'

Read homedir (posix account) from ldap server For example: homedir = /home/fry

Build the homedir with the python code user_homedirectory = os.path.normpath( os.path.join( user_homedirectory, oc.od.settings.desktop.get('appendpathtomounthomevolume') ) )
For example: homedir = /home/fry/.. this becomes homedir = /home

The mounted volume is /home ( in fact the PVC from your PV ) Then abcdesktop set the $HOME value Set the env var to $HOME=/home/fry