fixes #55 problem with kms driver, fixes problem with older git versions

This commit is contained in:
Lars Berning 2022-01-27 21:45:38 +01:00
parent 9a50378504
commit 2df753f165
No known key found for this signature in database
GPG Key ID: 028E73C9E1D8A0B3
1 changed files with 6 additions and 3 deletions

View File

@ -124,7 +124,7 @@ then
print "for ARM v6. Installing experimental unofficial build of Node.js..."
# we stick to node 14 as there are problem with WebAssembly on node 16 on the armv6l architecture
NODEJS_VERSION=v14.18.2
NODEJS_VERSION=v14.18.3
sudo rm -rf /opt/nodejs
sudo mkdir -p /opt/nodejs
sudo curl https://unofficial-builds.nodejs.org/download/release/$NODEJS_VERSION/node-$NODEJS_VERSION-linux-armv6l.tar.gz | sudo tar -xz --strip 1 -C /opt/nodejs/
@ -153,7 +153,9 @@ fi
cd $INSTALL_DIR
# get project code from repository
sudo git init -q -b main
sudo git init -q
# older versions of git would use 'master' instead of 'main' for the default branch
sudo git checkout -q -b main
sudo git config remote.origin.url $GIT_REMOTE
sudo git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
# prevent altering line endings
@ -206,7 +208,8 @@ if $INIT_GUI; then
print
print "Installing Graphical User Interface..."
sudo apt-get -y install --no-install-recommends xserver-xorg xserver-xorg-legacy x11-xserver-utils xinit openbox chromium-browser
sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
sudo gpasswd -a pi tty
sudo sed -i 's/allowed_users=console/allowed_users=anybody\nneeds_root_rights=yes/' /etc/X11/Xwrapper.config
sudo cp install/webbrowserkiosk.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable webbrowserkiosk