Skip to content

Commit

Permalink
Remove support for Fedora 28
Browse files Browse the repository at this point in the history
  • Loading branch information
dpmatthews committed Jun 13, 2024
1 parent 113efb0 commit 15c53b8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 49 deletions.
25 changes: 0 additions & 25 deletions Vagrantfile.fedora-28

This file was deleted.

31 changes: 8 additions & 23 deletions install-base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ if [[ $dist == ubuntu ]]; then
elif [[ $dist == redhat ]]; then
yum install -y gvim emacs || error
# Set the default editor in .bash_profile
if [[ $release == fedora* ]]; then
yum install -y leafpad || error
echo "export EDITOR=leafpad" >>.bash_profile
else
echo "export EDITOR=emacs" >>.bash_profile
fi
echo "export EDITOR=emacs" >>.bash_profile
fi

#### Install FCM dependencies & configuration
Expand All @@ -44,10 +39,7 @@ elif [[ $dist == redhat ]]; then
fi
yum install -y perl-Config-IniFiles subversion-perl || error
yum install -y gcc-c++ || error # used by fcm test-battery
if [[ $release == fedora* ]]; then
yum install -y m4 perl-DBI || error
yum install -y tkcvs xxdiff || error
elif [[ $release == centos7 ]]; then
if [[ $release == centos7 ]]; then
yum install -y tkcvs kdiff3 || error
else
yum install -y perl-DBI || error
Expand All @@ -57,7 +49,7 @@ fi
# Add the fcm wrapper script
dos2unix -n /vagrant/usr/local/bin/fcm /usr/local/bin/fcm
# Configure FCM diff and merge viewers
if [[ $dist == redhat && $release != fedora* ]]; then
if [[ $dist == redhat ]]; then
mkdir -p /opt/metomi-site/etc/fcm
dos2unix -n /vagrant/opt/metomi-site/etc/fcm/external.cfg /opt/metomi-site/etc/fcm/external.cfg
fi
Expand Down Expand Up @@ -90,13 +82,8 @@ if [[ $dist == ubuntu ]]; then
elif [[ $dist == redhat ]]; then
yum install -y graphviz at lsof || error
service atd start || error
if [[ $release == fedora* ]]; then
yum install -y redhat-rpm-config sqlite || error
yum install -y ImageMagick || error
elif [[ $release == centos8 ]]; then
yum install -y sqlite || error
fi
if [[ $release == centos8 ]]; then
yum install -y sqlite || error
yum install -y python2-pip python2-jinja2 || error
else
yum install -y python-pip python-pep8 python-jinja2 || error
Expand Down Expand Up @@ -151,7 +138,7 @@ elif [[ $dist == redhat ]]; then
else
yum install -y python-requests || error
yum install -y pcre-tools || error
pip install mock pytest-tap || error # used by test-battery
#pip install mock pytest-tap || error # used by test-battery
fi
fi
# Add the Rose wrapper scripts
Expand All @@ -172,6 +159,9 @@ dos2unix -n /vagrant/opt/metomi-site/etc/rose/rose.conf /opt/metomi-site/etc/ros
if [[ $dist == ubuntu ]]; then
# Ensure curl is installed
apt-get install -q -y curl || error
elif [[ $dist == redhat ]]; then
# Ensure wget is installed
yum install -y wget || error
fi
dos2unix -n /vagrant/usr/local/bin/install-fcm /usr/local/bin/install-fcm
dos2unix -n /vagrant/usr/local/bin/install-cylc7 /usr/local/bin/install-cylc7
Expand Down Expand Up @@ -326,8 +316,3 @@ dos2unix -n /vagrant/usr/local/bin/install-um-data /usr/local/bin/install-um-dat
dos2unix -n /vagrant/usr/local/bin/install-um-extras /usr/local/bin/install-um-extras
dos2unix -n /vagrant/usr/local/bin/run-test-batteries /usr/local/bin/run-test-batteries
dos2unix -n /vagrant/usr/local/bin/um-setup /usr/local/bin/um-setup

if [[ $dist == redhat && $release == fedora* ]]; then
# Allow these commands to be found via sudo
echo "Defaults:vagrant secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin" >/etc/sudoers.d/vagrant-path
fi
2 changes: 1 addition & 1 deletion install-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ sudo -u $(logname) dos2unix -n /vagrant/home/Desktop/docs.desktop /home/vagrant/
sudo -u $(logname) mkdir -p /home/vagrant/.config/autostart
sudo -u $(logname) cp /usr/share/applications/lxterminal.desktop /home/vagrant/.config/autostart
# Configure middle button emulation
if [[ ($dist == ubuntu && $release == 1804) || ($dist == redhat && $release == fedora*) ]]; then
if [[ $dist == ubuntu && $release == 1804 ]]; then
sudo -u $(logname) bash -c 'echo "[Desktop Entry]" >/home/vagrant/.config/autostart/xinput.desktop'
sudo -u $(logname) bash -c 'echo "Exec=xinput set-prop 11 \"libinput Middle Emulation Enabled\" 1" >>/home/vagrant/.config/autostart/xinput.desktop'
fi
Expand Down

0 comments on commit 15c53b8

Please sign in to comment.