web-add.sh > Add new command list-php-versions

This commit is contained in:
Ludovic Poujol 2024-04-22 16:47:06 +02:00
parent 7d656d70a5
commit f6ff478742
Signed by: lpoujol
SSH key fingerprint: SHA256:YZbQWfjHONnvIGkFZMs0xRKtqzqGqwtZU+kCOKhZXPA

View file

@ -174,6 +174,10 @@ generate-ssl-certificate LOGIN [false]
Generate the Let's Encrypt certificate
Run in TEST mode unless "false" is used
list-php-versions
List availables PHP versions (in multi-php mode)
version
Obtain the script version
@ -950,6 +954,9 @@ arg_processing() {
generate-ssl-certificate)
op_generatesslcertificate "$@"
;;
list-php-versions)
op_list_php_versions "$@"
;;
version)
op_version "$@"
;;
@ -1441,6 +1448,10 @@ op_checkvhosts() {
done
}
op_list_php_versions(){
echo "${PHP_VERSIONS[*]}"
}
# Return web-add.sh version
op_version(){
echo "$VERSION"