Files
codexpi/scripts/browser-entrypoint.sh

18 lines
489 B
Bash
Raw Normal View History

2026-11-14 20:23:59 +01:00
#!/bin/sh
set -eu
# Chromium writes these locks with the container hostname. After a Docker
# recreation, that hostname changes and the persisted profile can no longer
# start until the obsolete locks are removed.
profile=/home/seluser/browser-profile
if [ -d "$profile" ]; then
rm -f \
"$profile/SingletonCookie" \
"$profile/SingletonLock" \
"$profile/SingletonSocket" \
"$profile/DevToolsActivePort" \
"$profile/Default/LOCK"
fi
exec /opt/bin/entry_point.sh "$@"