Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
make the vnc password persistent (#74)
Browse files Browse the repository at this point in the history
* make the vnc password persistentx

* check if the .vnc folder exists

* fix the conditional

* fix the conditional, for real this time

* replace $PWD with a relative path instead

* docker-compose.yml: define volume for ~/.vnc

Signed-off-by: Akihiro Suda <[email protected]>

Co-authored-by: Akihiro Suda <[email protected]>
  • Loading branch information
Fuseteam and AkihiroSuda authored Jun 16, 2021
1 parent 68176c8 commit b74c477
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ services:
- '8080:8080'
volumes:
- '/lib/modules:/lib/modules:ro'
- 'dot-vnc:/home/user/.vnc'
volumes:
dot-vnc:
5 changes: 5 additions & 0 deletions src/unsudo
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ set -eux
car=$1
shift
cdr=$@

if [ -d /home/user/.vnc ]; then
chown user:user /home/user/.vnc
fi

# machinectl requires absolute path
params=("shell")
avail_envs="INHERIT_DISPLAY DISPLAY SESSION_MANAGER_ARGS POST_SESSION_SCRIPT WEBMODE"
Expand Down

0 comments on commit b74c477

Please sign in to comment.