|
7 | 7 | ####################################################################################### |
8 | 8 |
|
9 | 9 | # Check iptables paths and add symlinks when necessary |
| 10 | + |
10 | 11 | if [ ! -e "/sbin/iptables" ]; then |
11 | 12 | if which iptables; then |
12 | 13 | ln -s "$(which iptables)" /sbin/iptables |
@@ -47,13 +48,12 @@ if [ ! -e "/sbin/iptables-restore" ]; then |
47 | 48 | fi |
48 | 49 |
|
49 | 50 | if [ -e "/etc/apache2/mods-enabled/status.conf" ]; then |
50 | | - echo "(*) Hardening Apache2 Server Status Module..." |
51 | 51 | sed -i '/Allow from all/d' /etc/apache2/mods-enabled/status.conf |
52 | 52 | fi |
53 | 53 |
|
54 | 54 | # Add sury apache2 repository |
55 | 55 | 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..." |
57 | 57 |
|
58 | 58 | # Check OS and install related repository |
59 | 59 | if [ -e "/etc/os-release" ]; then |
|
96 | 96 |
|
97 | 97 | # Add daily midnight cron |
98 | 98 | if [ -z "$($BIN/v-list-cron-jobs admin | grep 'v-update-sys-queue daily')" ]; then |
| 99 | + echo "(*) Updating cron jobs..." |
99 | 100 | command="sudo $BIN/v-update-sys-queue daily" |
100 | 101 | $BIN/v-add-cron-job 'admin' '01' '00' '*' '*' '*' "$command" |
101 | 102 | fi |
|
114 | 115 |
|
115 | 116 | # Add hestia-event.conf, if the server is running apache2 |
116 | 117 | if [ "$WEB_SYSTEM" = "apache2" ]; then |
| 118 | + echo "(*) Updating Apache2 configuration..." |
117 | 119 | # Cleanup |
118 | 120 | rm --force /etc/apache2/mods-available/hestia-event.conf |
119 | 121 | rm --force /etc/apache2/mods-enabled/hestia-event.conf |
|
134 | 136 |
|
135 | 137 | # Install Filegator FileManager during upgrade |
136 | 138 | if [ ! -e "$HESTIA/web/fm/configuration.php" ]; then |
137 | | - echo "(*) Configuring Filegator FileManager..." |
138 | | - |
| 139 | + echo "(*) Configuring File Manager..." |
139 | 140 | # Install the FileManager |
140 | 141 | source $HESTIA_INSTALL_DIR/filemanager/install-fm.sh > /dev/null 2>&1 |
141 | 142 | else |
142 | | - echo "(*) Update Filegator Configuration..." |
| 143 | + echo "(*) Updating File Manager configuration..." |
143 | 144 | # Update configuration.php |
144 | 145 | cp -f $HESTIA_INSTALL_DIR/filemanager/filegator/configuration.php $HESTIA/web/fm/configuration.php |
145 | 146 | fi |
146 | 147 |
|
147 | 148 | # Enable nginx module loading |
148 | 149 | if [ -f "/etc/nginx/nginx.conf" ]; then |
| 150 | + echo "(*) Updating NGINX configuration..." |
149 | 151 | if [ ! -d "/etc/nginx/modules-enabled" ]; then |
150 | 152 | mkdir -p "/etc/nginx/modules-enabled" |
151 | 153 | fi |
|
0 commit comments