Check prerequisites before install

This commit is contained in:
Chocobozzz 2015-08-07 19:20:31 +02:00
parent fab6b7f094
commit cbb358c947

View File

@ -19,6 +19,15 @@ if [ "$#" -ne 3 ]; then
exit exit
fi fi
# Ensure there are the prerequisites
for i in openvpn mysql php bower node unzip wget sed; do
which $i > /dev/null
if [ "$?" -ne 0 ]; then
echo "Miss $i"
exit
fi
done
www=$1 www=$1
user=$2 user=$2
group=$3 group=$3