Skip to content

Commit 64b586d

Browse files
author
Kristan Kenney
committed
Merge branch 'main' into feature/user-roles
2 parents 8769597 + 27556a9 commit 64b586d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

bin/v-update-sys-hestia

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ source $HESTIA/conf/hestia.conf
3232

3333
# Checking arg number
3434
check_args '1' "$#" 'PACKAGE'
35+
is_hestia_package "hestia,hestia-nginx,hestia-php" "$package"
3536

3637
# Perform verification if read-only mode is enabled
3738
check_hestia_demo_mode

func/main.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,12 @@ multiphp_default_version() {
11651165
echo "$sys_phpversion"
11661166
}
11671167

1168+
is_hestia_package(){
1169+
if [ -z "$(echo $1 | grep -w $2)" ]; then
1170+
check_result $E_INVALID "$2 package is not controlled by hestiacp"
1171+
fi
1172+
}
1173+
11681174
# Run arbitrary cli commands with dropped privileges
11691175
# Note: setpriv --init-groups is not available on debian9 (util-linux 2.29.2)
11701176
# Input:

0 commit comments

Comments
 (0)