88
99# Update template files to add warnings
1010# Backup current templates
11- cp -r -f $HESTIA /data/templates/* $HESTIA_BACKUP /templates/
1211echo " [ ! ] Updating default web domain templates..."
1312$BIN /v-update-web-templates
1413echo " [ ! ] Updating default mail domain templates..."
@@ -18,32 +17,31 @@ $BIN/v-update-dns-templates
1817
1918# Rework apt repositories
2019apt=" /etc/apt/sources.list.d"
21- echo " [*] Hardening apt repositories..."
22-
20+ echo " [ * ] Hardening APT repositories..."
2321if [ -f " $apt /nginx.list" ]; then
2422 if grep -q " http://nginx.org/packages/mainline/" $apt /nginx.list; then
25- echo " [ * ] NGINX"
23+ echo " ----- NGINX"
2624 sed -i " s/http\:\/\/nginx.org/https\:\/\/nginx.org/g" $apt /nginx.list
2725 fi
2826fi
2927
3028if [ -f " $apt /php.list" ]; then
3129 if grep -q " http://packages.sury.org/" $apt /php.list; then
32- echo " [ * ] PHP"
30+ echo " ----- PHP"
3331 sed -i " s/http\:\/\/packages.sury.org/https\:\/\/packages.sury.org/g" $apt /php.list
3432 fi
3533fi
3634
3735if [ -f " $apt /mariadb.list" ]; then
3836 if grep -q " http://ams2.mirrors.digitalocean.com" $apt /mariadb.list; then
39- echo " [ * ] MariaDB"
37+ echo " ----- MariaDB"
4038 sed -i " s/http\:\/\/ams2.mirrors.digitalocean.com/https\:\/\/mirror.mva-n.net/g" $apt /mariadb.list
4139 fi
4240fi
4341
4442if [ -f " $apt /postgresql.list" ]; then
4543 if grep -q " http://apt.postgresql.org" $apt /postgresql.list; then
46- echo " [ * ] PostgreSQL"
44+ echo " ----- PostgreSQL"
4745 sed -i " s/http\:\/\/apt.postgresql.org/https\:\/\/apt.postgresql.org/g" $apt /postgresql.list
4846 fi
4947fi
0 commit comments