The mentioned command above is a general example command of how it could be used for a mass operations. I don’t believe it can break anything beyond it’s already broken.
Considering you have 150 domains with broken SSL certificates and you need to update them, here is what you could do:
#!/bin/sh
doms=$(virtualmin list-domains --with-feature ssl --name-only --no-alias)
for dom in $doms; do
# Disable SSL feature
virtualmin disable-feature --domain $dom --ssl
# Remove existing SSL certificates by default name
home=$(virtualmin list-domains --domain $dom --home-only)
rm -f $home/ssl.*
# Re-enable SSL feature
virtualmin enable-feature --domain $dom --ssl
done
Actually, here’s a “less hammer more scalpel” approach:
#!/bin/sh
/usr/sbin/virtualmin list-domains --with-feature web --name-only --no-alias > ./jjj.dat
doms=$(cat ./jjj.dat)
for dom in $doms; do
echo -------------------------------------------------------------------------
echo $dom
echo -------------------------------------------------------------------------
virtualmin modify-web --domain $dom --php-version 7.4
done