Просмотр исходного кода

Mise à jour de 'entrypoint.sh'

penta 4 дней назад
Родитель
Сommit
1700003100
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      entrypoint.sh

+ 3 - 1
entrypoint.sh

@@ -29,7 +29,9 @@ if [[ -n "${PASSWD:-}" ]]; then
     printf '%s:%s\n' "${USER}" "${PASSWD}" | sudo-root chpasswd || true
 fi
 
-rm -rf /tmp/.X11-unix "/tmp/.X${DISPLAY#:}-lock" "${HOME}/.cache" || true
+sudo-root rm -f "/tmp/.X${DISPLAY#:}-lock" || true
+sudo-root install -d -m 1777 /tmp/.X11-unix /tmp/.ICE-unix
+rm -rf "${HOME}/.cache" || true
 
 sudo-root ln -snf "/usr/share/zoneinfo/${TZ:-UTC}" /etc/localtime || true
 printf '%s\n' "${TZ:-UTC}" | sudo-root tee /etc/timezone >/dev/null || true