Skip to content

Commit e9b4d2e

Browse files
author
Kristan Kenney
committed
Merge branch 'installer-0630'
2 parents 433fef8 + 7873990 commit e9b4d2e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

install/upgrade/versions/latest.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#######################################################################################
88

99
# Check iptables paths and add symlinks when necessary
10+
1011
if [ ! -e "/sbin/iptables" ]; then
1112
if which iptables; then
1213
ln -s "$(which iptables)" /sbin/iptables
@@ -47,13 +48,12 @@ if [ ! -e "/sbin/iptables-restore" ]; then
4748
fi
4849

4950
if [ -e "/etc/apache2/mods-enabled/status.conf" ]; then
50-
echo "(*) Hardening Apache2 Server Status Module..."
5151
sed -i '/Allow from all/d' /etc/apache2/mods-enabled/status.conf
5252
fi
5353

5454
# Add sury apache2 repository
5555
if [ "$WEB_SYSTEM" = "apache2" ] && [ ! -e "/etc/apt/sources.list.d/apache2.list" ]; then
56-
echo "(*) Install sury.org Apache2 repository..."
56+
echo "(*) Configuring sury.org Apache2 repository..."
5757

5858
# Check OS and install related repository
5959
if [ -e "/etc/os-release" ]; then
@@ -96,6 +96,7 @@ fi
9696

9797
# Add daily midnight cron
9898
if [ -z "$($BIN/v-list-cron-jobs admin | grep 'v-update-sys-queue daily')" ]; then
99+
echo "(*) Updating cron jobs..."
99100
command="sudo $BIN/v-update-sys-queue daily"
100101
$BIN/v-add-cron-job 'admin' '01' '00' '*' '*' '*' "$command"
101102
fi
@@ -114,6 +115,7 @@ fi
114115

115116
# Add hestia-event.conf, if the server is running apache2
116117
if [ "$WEB_SYSTEM" = "apache2" ]; then
118+
echo "(*) Updating Apache2 configuration..."
117119
# Cleanup
118120
rm --force /etc/apache2/mods-available/hestia-event.conf
119121
rm --force /etc/apache2/mods-enabled/hestia-event.conf
@@ -134,18 +136,18 @@ fi
134136

135137
# Install Filegator FileManager during upgrade
136138
if [ ! -e "$HESTIA/web/fm/configuration.php" ]; then
137-
echo "(*) Configuring Filegator FileManager..."
138-
139+
echo "(*) Configuring File Manager..."
139140
# Install the FileManager
140141
source $HESTIA_INSTALL_DIR/filemanager/install-fm.sh > /dev/null 2>&1
141142
else
142-
echo "(*) Update Filegator Configuration..."
143+
echo "(*) Updating File Manager configuration..."
143144
# Update configuration.php
144145
cp -f $HESTIA_INSTALL_DIR/filemanager/filegator/configuration.php $HESTIA/web/fm/configuration.php
145146
fi
146147

147148
# Enable nginx module loading
148149
if [ -f "/etc/nginx/nginx.conf" ]; then
150+
echo "(*) Updating NGINX configuration..."
149151
if [ ! -d "/etc/nginx/modules-enabled" ]; then
150152
mkdir -p "/etc/nginx/modules-enabled"
151153
fi

0 commit comments

Comments
 (0)