fix: Moves shell into post_install
This commit is contained in:
parent
269985b0e3
commit
4a64d35bc9
2 changed files with 8 additions and 3 deletions
|
|
@ -59,4 +59,10 @@ tee /home/kiosk/.bash_profile > /dev/null <<'EOF'
|
||||||
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
exec cage firefox --kiosk https://c3nav.de
|
exec cage firefox --kiosk https://c3nav.de
|
||||||
fi
|
fi
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
mkdir -p /home/kiosk/.mozilla/firefox
|
||||||
|
curl -fsSL -o /tmp/Firefox.zip "https://git.hamburg.ccc.de/Firefox.zip"
|
||||||
|
unzip -o /tmp/Firefox.zip -d /home/kiosk/.mozilla/firefox
|
||||||
|
chown -R kiosk:kiosk /home/kiosk/.mozilla/firefox
|
||||||
|
rm -f /tmp/Firefox.zip
|
||||||
|
|
@ -65,5 +65,4 @@ d-i finish-install/reboot_in_progress note
|
||||||
d-i preseed/late_command string \
|
d-i preseed/late_command string \
|
||||||
in-target curl -o /tmp/post_install.sh https://git.hamburg.ccc.de/ViMaSter/preseed/raw/branch/main/post_install.sh; \
|
in-target curl -o /tmp/post_install.sh https://git.hamburg.ccc.de/ViMaSter/preseed/raw/branch/main/post_install.sh; \
|
||||||
in-target chmod +x /tmp/post_install.sh; \
|
in-target chmod +x /tmp/post_install.sh; \
|
||||||
in-target /tmp/post_install.sh; \
|
in-target /tmp/post_install.sh;
|
||||||
in-target sh -c 'FIREFOX_ZIP_URL="${FIREFOX_ZIP_URL:-https://git.hamburg.ccc.de/Firefox.zip}"; mkdir -p /home/kiosk/.mozilla/firefox; curl -fsSL -o /tmp/Firefox.zip "$FIREFOX_ZIP_URL"; unzip -o /tmp/Firefox.zip -d /home/kiosk/.mozilla/firefox; chown -R kiosk:kiosk /home/kiosk/.mozilla/firefox; rm -f /tmp/Firefox.zip'
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue