Can now install on the opensuse distribution.
- Now using the distro module to determine the linux distro.
This commit is contained in:
parent
3eb2f71adb
commit
8b867bb333
4 changed files with 87 additions and 40 deletions
|
|
@ -7,16 +7,27 @@ set -e
|
|||
DIST_ID=$(cat /etc/os-release | grep "^ID=" | cut -d "=" -f 2)
|
||||
if [ $DIST_ID == "fedora" ]; then
|
||||
INSTALL_CMD="dnf -y install"
|
||||
INOTIFY_NAME="python3-inotify python3-pygments python3-docopt python3-pillow"
|
||||
DEPS="python3-distro python3-inotify python3-pygments python3-docopt python3-pillow"
|
||||
elif [ $DIST_ID == "arch" ]; then
|
||||
INSTALL_CMD="pacman -S --noconfirm --needed"
|
||||
INOTIFY_NAME="python-pyinotify python-pygments python-docopt python-pillow"
|
||||
DEPS="python-pyinotify python-pygments python-docopt python-pillow"
|
||||
sudo pacman -S --noconfirm python-pip
|
||||
sudo pip3 install distro
|
||||
elif [ $DIST_ID == "opensuse" ]; then
|
||||
INSTALL_CMD="zypper -n install"
|
||||
DEPS="python3-pyinotify python3-Pygments python3-docopt python3-Pillow"
|
||||
sudo pip3 install distro
|
||||
elif [ $DIST_ID == "debian" ]; then
|
||||
INSTALL_CMD="apt --yes install"
|
||||
DEPS="python3-pyinotify python3-pygments python3-docopt python3-pillow"
|
||||
sudo apt --yes install python3-pip
|
||||
sudo pip3 install distro
|
||||
else
|
||||
INSTALL_CMD="apt --yes install"
|
||||
INOTIFY_NAME="python3-pyinotify python3-pygments python3-docopt python3-pillow"
|
||||
DEPS="python3-distro python3-pyinotify python3-pygments python3-docopt python3-pillow"
|
||||
fi
|
||||
echo "Install the dependencies of the vigil script..."
|
||||
sudo $INSTALL_CMD $INOTIFY_NAME util-linux
|
||||
echo "Installing the dependencies of the vigil script..."
|
||||
sudo $INSTALL_CMD $DEPS util-linux
|
||||
echo
|
||||
echo "Install all the tools vigil may need..."
|
||||
echo "Installing all the tools vigil may need..."
|
||||
./install-tools
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue