Tools: Fix setup for Jammy

This commit is contained in:
Oleksandr Shcherbatii 2022-04-24 07:34:39 +00:00 committed by Peter Barker
parent 6eea4d12ee
commit 0cec5dccea
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,7 @@ else
echo "$JSBBINARY does not exist, building it in your home folder:"
cd ~
rm -rf jsbsim
git clone git://github.com/JSBSim-Team/jsbsim.git
git clone https://github.com/JSBSim-Team/jsbsim.git
cd jsbsim
mkdir build
cd build

View File

@ -14,7 +14,14 @@ fi
apt-get update
apt-get install -y ubuntu-desktop
RELEASE_CODENAME=$(lsb_release -c -s)
PACKAGES="ubuntu-desktop"
if [ ${RELEASE_CODENAME} == 'jammy' ]; then
PACKAGES="$PACKAGES dbus-x11"
fi
apt-get install -y $PACKAGES
GDB_CONF="/etc/gdm3/custom.conf"
perl -pe 's/# AutomaticLoginEnable = true/AutomaticLoginEnable = true/' -i "$GDB_CONF"