Skip to content

Commit 4bd186e

Browse files
committed
Silent repo update, check if arguments are set.
1 parent da096fa commit 4bd186e

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/hst_autocompile.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,13 @@ timestamp() {
3232
}
3333

3434
# Install needed software
35-
apt-get install -y $SOFTWARE
35+
echo "Update system repository..."
36+
apt-get -qq update
37+
echo "Installing dependencies for compilation..."
38+
apt-get -qq install -y $SOFTWARE
3639

3740
# Fix for Debian PHP Envroiment
38-
if [ ! -f /usr/local/include/curl ]; then
41+
if [ ! -e /usr/local/include/curl ]; then
3942
ln -s /usr/include/x86_64-linux-gnu/curl /usr/local/include/curl
4043
fi
4144

@@ -56,9 +59,18 @@ for arg; do
5659
--hestia)
5760
HESTIA_B='true'
5861
;;
62+
*)
63+
NOARGUMENT='true'
64+
;;
5965
esac
6066
done
6167

68+
if [[ $# -eq 0 ]] ; then
69+
echo "!!! Please run with argument --all, --hestia, --nginx or --php !!!"
70+
exit 1
71+
fi
72+
73+
6274
#################################################################################
6375
#
6476
# Building hestia-nginx

0 commit comments

Comments
 (0)