Просмотр исходного кода

Block unlimited for backups (#3181)

* Replace www.vestacp.com with vestacp.com

www.vestacp.com has a no valid ssl certificated only vestacp.com is listed

* Block  unlimited in backup packages

* Update format v-restart-service

+ chmod some files to the right permissions
Jaap Marcus 3 лет назад
Родитель
Сommit
35649e5921
4 измененных файлов с 4 добавлено и 6 удалено
  1. 1 1
      README.md
  2. 1 3
      bin/v-add-user-package
  3. 1 1
      bin/v-restart-service
  4. 1 1
      bin/v-run-cli-cmd

+ 1 - 1
README.md

@@ -135,4 +135,4 @@ If you would like to contribute to the project, please [read our Contribution Gu
 
 ## License
 
-Hestia Control Panel is licensed under [GPL v3](https://github.com/hestiacp/hestiacp/blob/release/LICENSE) license, and is based on the [VestaCP](https://www.vestacp.com/) project.<br>
+Hestia Control Panel is licensed under [GPL v3](https://github.com/hestiacp/hestiacp/blob/release/LICENSE) license, and is based on the [VestaCP](https://vestacp.com/) project.<br>

+ 1 - 3
bin/v-add-user-package

@@ -58,9 +58,7 @@ is_package_consistent() {
 	if [ "$BANDWIDTH" != 'unlimited' ]; then
 		is_int_format_valid "$BANDWIDTH" 'BANDWIDTH'
 	fi
-	if [ "$BACKUPS" != 'unlimited' ]; then
-		is_int_format_valid "$BACKUPS" 'BACKUPS'
-	fi
+	is_int_format_valid "$BACKUPS" 'BACKUPS'
 	if [ -n "$WEB_TEMPLATE" ]; then
 		is_web_template_valid "$WEB_TEMPLATE"
 	fi

+ 1 - 1
bin/v-restart-service

@@ -73,7 +73,7 @@ for service in $service_list; do
 		"$service" = "php7.4-fpm" -o \
 		"$service" = "php8.0-fpm" -o \
 		"$service" = "php8.1-fpm" -o \
-    "$service" = "php8.2-fpm" -o \
+		"$service" = "php8.2-fpm" -o \
 		"$service" = "proftpd" -o \
 		"$service" = "ssh" -o \
 		"$service" = "fail2ban" ]; then

+ 1 - 1
bin/v-run-cli-cmd

@@ -69,7 +69,7 @@ if [ "$basecmd" != 'ps' -a \
 	"$basecmd" != 'php7.4' -a \
 	"$basecmd" != 'php8.0' -a \
 	"$basecmd" != 'php8.1' -a \
-  "$basecmd" != 'php8.2'     -a \
+	"$basecmd" != 'php8.2' -a \
 	"$basecmd" != 'php' -a \
 	"$basecmd" != "wp" -a \
 	"$basecmd" != 'composer' ]; then