2015-12-26 20:52:39 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2019-02-04 11:48:47 +10:00
|
|
|
# Copyright (C) 2015-2019 Andrew Hamilton. All rights reserved.
|
2017-06-01 01:03:39 +01:00
|
|
|
# Licensed under the Artistic License 2.0.
|
|
|
|
|
|
2015-12-26 20:52:39 +00:00
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
|
2017-05-17 16:46:54 +01:00
|
|
|
DIST_ID=$(cat /etc/os-release | grep "^ID=" | cut -d "=" -f 2)
|
2017-09-01 22:07:22 +01:00
|
|
|
if [ $DIST_ID != "ubuntu" ]; then
|
2018-09-17 23:59:38 +10:00
|
|
|
echo "Eris can only be installed on Ubuntu."
|
2017-09-01 22:07:22 +01:00
|
|
|
exit 1
|
2017-05-17 16:46:54 +01:00
|
|
|
fi
|
2019-06-22 13:29:34 +10:00
|
|
|
echo "Installing the dependencies of the eris script…"
|
2019-11-06 14:07:33 +10:00
|
|
|
sudo apt --yes install python3-pip python3.8 util-linux
|
|
|
|
|
python3.8 -m pip install pyinotify pygments docopt pillow toml
|
2015-12-26 20:52:39 +00:00
|
|
|
echo
|
2019-06-22 13:29:34 +10:00
|
|
|
echo "Installing all the tools eris may need…"
|
2015-12-26 20:52:39 +00:00
|
|
|
./install-tools
|