We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32ef8a2 + 9a1fccd commit 27556a9Copy full SHA for 27556a9
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
@@ -1154,6 +1154,12 @@ multiphp_default_version() {
1154
echo "$sys_phpversion"
1155
}
1156
1157
+is_hestia_package(){
1158
+ if [ -z "$(echo $1 | grep -w $2)" ]; then
1159
+ check_result $E_INVALID "$2 package is not controlled by hestiacp"
1160
+ fi
1161
+}
1162
+
1163
# Run arbitrary cli commands with dropped privileges
1164
# Note: setpriv --init-groups is not available on debian9 (util-linux 2.29.2)
1165
# Input:
0 commit comments