Skip to content

Commit 7aa3ef4

Browse files
authored
Create group on new install (hestiacp#4540)
1 parent 42e8877 commit 7aa3ef4

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

install/hst-install-debian.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,6 +1171,11 @@ random_password=$(gen_pass '32')
11711171
# do not allow login into hestiaweb user
11721172
echo hestiaweb:$random_password | sudo chpasswd -e
11731173

1174+
# Add a general group for normal users created by Hestia
1175+
if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
1176+
groupadd --system "hestia-users"
1177+
fi
1178+
11741179
# Create user for php-fpm configs
11751180
/usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
11761181
# Ensures proper permissions for Hestia service interactions.

install/hst-install-ubuntu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,11 @@ random_password=$(gen_pass '32')
11681168
# do not allow login into hestiaweb user
11691169
echo hestiaweb:$random_password | sudo chpasswd -e
11701170

1171+
# Add a general group for normal users created by Hestia
1172+
if [ -z "$(grep ^hestia-users: /etc/group)" ]; then
1173+
groupadd --system "hestia-users"
1174+
fi
1175+
11711176
# Create user for php-fpm configs
11721177
/usr/sbin/useradd "hestiamail" -c "$email" --no-create-home
11731178
# Ensures proper permissions for Hestia service interactions.

0 commit comments

Comments
 (0)