File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ pkg_data=$(cat $HESTIA/data/packages/$package.pkg | egrep -v "TIME|DATE")
7575
7676# Checking shell
7777shell_conf=$( echo " $pkg_data " | grep -m1 ' SHELL' | cut -f 2 -d \' )
78+ jail_enabled=$( echo " $pkg_data " | grep -m1 ' SHELL_JAIL_ENABLED' | cut -f 2 -d \' )
79+ resource_enaled=$( echo " $pkg_data " | grep -m1 ' RESOURCES_LIMIT' | cut -f 2 -d \' )
80+ disk_quota_enabled=$( echo " $pkg_data " | grep -m1 ' DISK_QUOTA' | cut -f 2 -d \' )
7881shell=$( grep -w " $shell_conf " /etc/shells | head -n1)
7982
8083# Adding user
@@ -264,12 +267,12 @@ DATE='$date'" > $USER_DATA/user.conf
264267chmod 660 $USER_DATA /user.conf
265268
266269# Updating quota
267- if [ " $DISK_QUOTA " = ' yes' ]; then
270+ if [ " $disk_quota_enabled " = ' yes' ]; then
268271 $BIN /v-update-user-quota " $user "
269272fi
270273
271274# Update resource limitation (cgroup)
272- if [ " $RESOURCES_LIMIT " = ' yes' ]; then
275+ if [ " $resource_enaled " = ' yes' ]; then
273276 $BIN /v-update-user-cgroup " $user "
274277fi
275278
287290$BIN /v-add-user-sftp-jail $user
288291
289292# Adding jailed ssh env
290- if [ " $SHELL_JAIL_ENABLED " = ' yes' ]; then
293+ if [ " $jail_enabled " = ' yes' ]; then
291294 $BIN /v-add-user-ssh-jail $user
292295fi
293296
You can’t perform that action at this time.
0 commit comments