File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ source_conf "$HESTIA/conf/hestia.conf"
2828
2929# Checking arg number
3030check_args ' 1' " $# " ' PACKAGE'
31- is_hestia_package " hestia, hestia-nginx, hestia-php" " $package "
31+ is_hestia_package " hestia hestia-nginx hestia-php" " $package "
3232
3333# Perform verification if read-only mode is enabled
3434check_hestia_demo_mode
Original file line number Diff line number Diff line change @@ -1502,8 +1502,14 @@ multiphp_default_version() {
15021502}
15031503
15041504is_hestia_package (){
1505- if [ -z " $( echo $1 | grep -w $2 ) " ]; then
1506- check_result " $E_INVALID " " $2 package is not controlled by hestiacp"
1505+ check= false;
1506+ for package in $1 ; do
1507+ if [ $package == " $2 " ]; then
1508+ check=" true" ;
1509+ fi
1510+ done
1511+ if [ " $check " != " true" ]; then
1512+ check_result $E_INVALID " $2 package is not controlled by hestiacp"
15071513 fi
15081514}
15091515
You can’t perform that action at this time.
0 commit comments