You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Remove old Office 365 template as there is a newer version with an updated name
@@ -172,7 +172,7 @@ if [ -d "/etc/roundcube" ]; then
172
172
fi
173
173
174
174
# Check if acl package is installed
175
-
echo"(*) Verify acl package and hardening user permissions..."
175
+
echo"(*) Verifying ACLs and hardening user permissions..."
176
176
if [ !-e'/usr/bin/setfacl' ];then
177
177
apt-get -qq update > /dev/null 2>&1
178
178
apt-get -qq -y install acl > /dev/null 2>&1
@@ -348,21 +348,37 @@ done
348
348
# Rebuild user
349
349
foruserin`ls /usr/local/hestia/data/users/`;do
350
350
echo"(*) Rebuilding domains and account for user: $user..."
351
-
v-rebuild-web-domains $user>/dev/null 2>&1
352
-
v-rebuild-dns-domains $user>/dev/null 2>&1
353
-
v-rebuild-mail-domains $user>/dev/null 2>&1
351
+
if [ !-z$WEB_SYSTEM ];then
352
+
v-rebuild-web-domains $user>/dev/null 2>&1
353
+
fi
354
+
if [ !-z$DNS_SYSTEM ];then
355
+
v-rebuild-dns-domains $user>/dev/null 2>&1
356
+
fi
357
+
if [ !-z$MAIL_SYSTEM ];then
358
+
v-rebuild-mail-domains $user>/dev/null 2>&1
359
+
fi
354
360
done
355
361
356
-
#Adding upgrade notification
362
+
#Add upgrade notification to admin user's panel
357
363
$BIN/v-add-user-notification admin 'Upgrade complete''Your server has been updated to v0.10.0.<br>Please report any bugs on GitHub at<br>https://github.com/hestiacp/hestiacp/Issues<br><br>Have a great day!'
358
-
# Restart server services
364
+
365
+
# Restart services for changes to take full effect
359
366
echo"(*) Restarting services..."
360
-
sleep 5
361
-
$BIN/v-restart-mail $restart
362
-
$BIN/v-restart-service $IMAP_SYSTEM$restart
363
-
$BIN/v-restart-web $restart
364
-
$BIN/v-restart-proxy $restart
365
-
$BIN/v-restart-dns $restart
367
+
sleep 3
368
+
if [ !-z$MAIL_SYSTEM ];then
369
+
$BIN/v-restart-mail $restart
370
+
fi
371
+
if [ !-z$IMAP_SYSTEM ];then
372
+
$BIN/v-restart-service $IMAP_SYSTEM$restart
373
+
fi
374
+
if [ !-z$WEB_SYSTEM ];then
375
+
$BIN/v-restart-web $restart
376
+
$BIN/v-restart-proxy $restart
377
+
fi
378
+
if [ !-z$DNS_SYSTEM ];then
379
+
$BIN/v-restart-dns $restart
380
+
fi
381
+
366
382
367
383
echo""
368
384
echo" Upgrade complete! Please report any bugs or issues to"
0 commit comments