Răsfoiți Sursa

Fix quotation

ehfd 5 ani în urmă
părinte
comite
c6d4b2d410
2 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 1 1
      Dockerfile
  2. 3 2
      bootstrap.sh

+ 1 - 1
Dockerfile

@@ -156,7 +156,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
     usermod -a -G adm,audio,cdrom,disk,games,lpadmin,sudo,dip,plugdev,tty,video user && \
     echo "user ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
     chown -R user:user /home/user/ && \
-    echo 'user:${VNCPASS}' | chpasswd && \
+    echo "user:${VNCPASS}" | chpasswd && \
     rm -rf /var/lib/apt/lists/*
 
 EXPOSE 5901

+ 3 - 2
bootstrap.sh

@@ -3,7 +3,7 @@ set -e
 
 trap "echo TRAPed signal" HUP INT QUIT KILL TERM
 
-echo 'user:${VNCPASS}' | sudo chpasswd
+echo "user:${VNCPASS}" | sudo chpasswd
 
 # NVIDIA driver inside the container must be same version as host.
 HEX_ID=$(sudo nvidia-smi --query-gpu=pci.bus_id --id=${NVIDIA_VISIBLE_DEVICES} --format=csv | tail -n1)
@@ -15,7 +15,8 @@ sudo nvidia-xconfig -a --virtual=${SIZEW}x${SIZEH} --allow-empty-initial-configu
 shopt -s extglob
 for TTY in /dev/tty+([0-9])
 do
-if [ -w $TTY ] ; then
+if [ -w $TTY ]
+then
     /usr/bin/X tty$(echo $TTY | grep -Eo '[0-9]+$') :0 &
     break
 fi