We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8769597 + 27556a9 commit 64b586dCopy full SHA for 64b586d
2 files changed
bin/v-update-sys-hestia
@@ -32,6 +32,7 @@ source $HESTIA/conf/hestia.conf
32
33
# Checking arg number
34
check_args '1' "$#" 'PACKAGE'
35
+is_hestia_package "hestia,hestia-nginx,hestia-php" "$package"
36
37
# Perform verification if read-only mode is enabled
38
check_hestia_demo_mode
func/main.sh
@@ -1165,6 +1165,12 @@ multiphp_default_version() {
1165
echo "$sys_phpversion"
1166
}
1167
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
+
1174
# Run arbitrary cli commands with dropped privileges
1175
# Note: setpriv --init-groups is not available on debian9 (util-linux 2.29.2)
1176
# Input:
0 commit comments