Explorar el Código

Create group on new install (#4540)

Jaap Marcus hace 1 año
padre
commit
7aa3ef454b
Se han modificado 2 ficheros con 10 adiciones y 0 borrados
  1. 5 0
      install/hst-install-debian.sh
  2. 5 0
      install/hst-install-ubuntu.sh

+ 5 - 0
install/hst-install-debian.sh

@@ -1171,6 +1171,11 @@ random_password=$(gen_pass '32')
 # do not allow login into hestiaweb user
 # do not allow login into hestiaweb user
 echo hestiaweb:$random_password | sudo chpasswd -e
 echo hestiaweb:$random_password | sudo chpasswd -e
 
 
+# Add a general group for normal users created by Hestia
+if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
+	groupadd --system "hestia-users"
+fi
+
 # Create user for php-fpm configs
 # Create user for php-fpm configs
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 # Ensures proper permissions for Hestia service interactions.
 # Ensures proper permissions for Hestia service interactions.

+ 5 - 0
install/hst-install-ubuntu.sh

@@ -1168,6 +1168,11 @@ random_password=$(gen_pass '32')
 # do not allow login into hestiaweb user
 # do not allow login into hestiaweb user
 echo hestiaweb:$random_password | sudo chpasswd -e
 echo hestiaweb:$random_password | sudo chpasswd -e
 
 
+# Add a general group for normal users created by Hestia
+if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
+	groupadd --system "hestia-users"
+fi
+
 # Create user for php-fpm configs
 # Create user for php-fpm configs
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 /usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
 # Ensures proper permissions for Hestia service interactions.
 # Ensures proper permissions for Hestia service interactions.