2020-11-12 11:10:25 -05:00
|
|
|
#!/bin/bash
|
2020-12-17 11:50:29 -05:00
|
|
|
if [ -e "$1" ]; then
|
2020-11-22 08:50:17 -05:00
|
|
|
echo "Running pre-installation stuff.."
|
|
|
|
echo ""
|
2020-12-17 11:50:29 -05:00
|
|
|
sudo bash - <$1
|
2020-11-12 11:10:25 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
2020-11-22 08:50:17 -05:00
|
|
|
echo ""
|
|
|
|
echo "Installing packages.."
|
|
|
|
echo ""
|
2020-12-17 11:50:29 -05:00
|
|
|
sudo pacman --needed -S $(cat - <$2)
|
2020-11-12 11:10:25 -05:00
|
|
|
|
2020-12-17 11:50:29 -05:00
|
|
|
if [ -e "$3" ]; then
|
2020-11-22 08:50:17 -05:00
|
|
|
echo ""
|
|
|
|
echo "Enabling services.."
|
|
|
|
echo ""
|
2020-12-17 11:50:29 -05:00
|
|
|
sudo bash - <$3
|
2020-11-12 11:10:25 -05:00
|
|
|
fi
|
2020-11-22 08:50:17 -05:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
read -p "Press enter to finish"
|