Skip to content

Commit 0f80331

Browse files
committed
Add installation informations, exclude php packages if phpfpm.
1 parent 158b0b9 commit 0f80331

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

install/hst-install-debian.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ check_result $? 'apt-get upgrade failed'
512512
# Define apt conf location
513513
apt=/etc/apt/sources.list.d
514514

515+
# Updating system
516+
echo "Install third party repository keys... "
517+
515518
# Installing nginx repo
516519
echo "deb http://nginx.org/packages/mainline/$VERSION/ $codename nginx" \
517520
> $apt/nginx.list
@@ -619,7 +622,6 @@ if [ "$apache" = 'no' ]; then
619622
software=$(echo "$software" | sed -e "s/libapache2-mod-ruid2//")
620623
software=$(echo "$software" | sed -e "s/libapache2-mod-rpaf//")
621624
software=$(echo "$software" | sed -e "s/libapache2-mod-fcgid//")
622-
software=$(echo "$software" | sed -e "s/libapache2-mod-php7.3//")
623625
software=$(echo "$software" | sed -e "s/libapache2-mod-php//")
624626
fi
625627
if [ "$vsftpd" = 'no' ]; then
@@ -670,6 +672,14 @@ fi
670672
if [ "$iptables" = 'no' ] || [ "$fail2ban" = 'no' ]; then
671673
software=$(echo "$software" | sed -e 's/fail2ban//')
672674
fi
675+
if [ "$phpfpm" = 'yes' ]; then
676+
software=$(echo "$software" | sed -e 's/php-pgsql//')
677+
software=$(echo "$software" | sed -e 's/php-curl//')
678+
software=$(echo "$software" | sed -e 's/php-common//')
679+
software=$(echo "$software" | sed -e 's/php-cgi//')
680+
software=$(echo "$software" | sed -e 's/php-mysql//')
681+
fi
682+
673683

674684
#----------------------------------------------------------#
675685
# Package Includes #
@@ -710,7 +720,7 @@ echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
710720
chmod a+x /usr/sbin/policy-rc.d
711721

712722
# Installing apt packages
713-
echo -ne "\n\nWe will now install HestiaCP and all required packages. The process will take around 10-15 minutes. "
723+
echo -ne "Install HestiaCP and all required packages, the process will take around 10-15 minutes... "
714724
apt-get -y -qq install $software >> $LOG &
715725
BACK_PID=$!
716726

@@ -1299,7 +1309,7 @@ if [ "$clamd" = 'yes' ]; then
12991309
/lib/systemd/system/clamav-daemon.service
13001310
systemctl daemon-reload
13011311
fi
1302-
echo -ne "Updating ClamAV... "
1312+
echo -ne "Update ClamAV definitions... "
13031313
/usr/bin/freshclam >> $LOG &
13041314
BACK_PID=$!
13051315
spin_i=1

install/hst-install-ubuntu.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ check_result $? 'apt-get upgrade failed'
490490
# Define apt conf location
491491
apt=/etc/apt/sources.list.d
492492

493+
# Updating system
494+
echo "Install third party repository keys... "
495+
493496
# Installing nginx repo
494497
echo "deb http://nginx.org/packages/mainline/$VERSION/ $codename nginx" \
495498
> $apt/nginx.list
@@ -593,7 +596,6 @@ if [ "$apache" = 'no' ]; then
593596
software=$(echo "$software" | sed -e "s/libapache2-mod-ruid2//")
594597
software=$(echo "$software" | sed -e "s/libapache2-mod-rpaf//")
595598
software=$(echo "$software" | sed -e "s/libapache2-mod-fcgid//")
596-
software=$(echo "$software" | sed -e "s/libapache2-mod-php7.3//")
597599
software=$(echo "$software" | sed -e "s/libapache2-mod-php//")
598600
fi
599601
if [ "$vsftpd" = 'no' ]; then
@@ -643,6 +645,14 @@ fi
643645
if [ "$iptables" = 'no' ] || [ "$fail2ban" = 'no' ]; then
644646
software=$(echo "$software" | sed -e 's/fail2ban//')
645647
fi
648+
if [ "$phpfpm" = 'yes' ]; then
649+
software=$(echo "$software" | sed -e 's/php-pgsql//')
650+
software=$(echo "$software" | sed -e 's/php-curl//')
651+
software=$(echo "$software" | sed -e 's/php-common//')
652+
software=$(echo "$software" | sed -e 's/php-cgi//')
653+
software=$(echo "$software" | sed -e 's/php-mysql//')
654+
fi
655+
646656

647657
#----------------------------------------------------------#
648658
# Package Includes #
@@ -683,7 +693,7 @@ echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d
683693
chmod a+x /usr/sbin/policy-rc.d
684694

685695
# Installing apt packages
686-
echo -ne "\n\nWe will now install HestiaCP and all required packages. The process will take around 10-15 minutes. "
696+
echo -ne "Install HestiaCP and all required packages, the process will take around 10-15 minutes... "
687697
apt-get -y install $software > /dev/null 2>&1 &
688698
BACK_PID=$!
689699

@@ -1259,7 +1269,7 @@ if [ "$clamd" = 'yes' ]; then
12591269
gpasswd -a clamav Debian-exim > /dev/null 2>&1
12601270
cp -f $hestiacp/clamav/clamd.conf /etc/clamav/
12611271
update-rc.d clamav-daemon defaults
1262-
echo -ne "Updating ClamAV... "
1272+
echo -ne "Update ClamAV definitions... "
12631273
/usr/bin/freshclam >> $LOG &
12641274
BACK_PID=$!
12651275
spin_i=1

0 commit comments

Comments
 (0)