mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
Check if it's vesta package
Credits to: Numan Türle @numanturle
This commit is contained in:
parent
a4977253ca
commit
f5cc2bb7f2
1 changed files with 17 additions and 0 deletions
|
@ -28,6 +28,23 @@ source $VESTA/conf/vesta.conf
|
|||
# Checking arg number
|
||||
check_args '1' "$#" 'PACKAGE'
|
||||
|
||||
valid=0
|
||||
if [ "$package" = "vesta" ]; then
|
||||
valid=1
|
||||
fi
|
||||
if [ "$package" = "vesta-nginx" ]; then
|
||||
valid=1
|
||||
fi
|
||||
if [ "$package" = "vesta-php" ]; then
|
||||
valid=1
|
||||
fi
|
||||
if [ "$package" = "vesta-softaculous" ]; then
|
||||
valid=1
|
||||
fi
|
||||
if [ $valid -eq 0 ]; then
|
||||
echo "Package $package is not valid"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Action #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue