Latest
This commit is contained in:
parent
c4296dc011
commit
25027816b6
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ else
|
|||
echo -n "{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "VNC_PASSWORD")) }}{{ includeTemplate "secrets/VNC_PASSWORD" | decrypt | trim }}{{ else }}{{ default "vncpass" (env "VNC_PASSWORD") }}{{ end }}" | vncpasswd -f > "${XDG_CONFIG_HOME:-$HOME/.config}/vnc/passwd"
|
||||
logg info 'Adding VNC read-only password to ~/.config/vnc/passwd'
|
||||
echo -n "{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "VNC_READ_PASSWORD")) }}{{ includeTemplate "secrets/VNC_READ_PASSWORD" | decrypt | trim }}{{ else }}{{ default "readonly" (env "VNC_READ_PASSWORD") }}{{ end }}" | vncpasswd -f >> "${XDG_CONFIG_HOME:-$HOME/.config}/vnc/passwd"
|
||||
logg info 'Reloading the systemctl configuration files since a new one for VNC may have been added'
|
||||
sudo systemctl daemon-reload
|
||||
logg info 'Enabling / starting the VNC service for the current user / display 1'
|
||||
sudo systemctl start vncserver@1
|
||||
sudo systemctl enable vncserver@1
|
||||
|
|
Loading…
Reference in a new issue