#!/bin/zsh set -e doms=( 'localhost' 'local3000.localhost' 'djinn1.localhost' '*.adminer.localhost' '*.aikido.localhost' '*.asqix.localhost' '*.baterie-grohe.localhost' '*.booking-core.localhost' '*.booking.localhost' '*.caves.localhost' '*.enix.localhost' '*.eno.localhost' '*.eno-statistix.localhost' '*.eshop.localhost' '*.gdpr.localhost' '*.invoicing.localhost' '*.jopixel-support.localhost' '*.kalich.localhost' '*.katalogy.localhost' '*.kotmel.localhost' '*.laya-server.localhost' '*.layaweb.localhost' '*.mytango.localhost' '*.nicerice.localhost' '*.statistix.localhost' '*.teastarter.localhost' '*.trailguide.localhost' '*.up123.localhost' '*.vizit-core.localhost' '*.vizit.localhost' '*.vizitpresentation.localhost' '*.vizit-virtualni-recepce.localhost' '*.zdravotniregistr.cz' ) mkcert -cert-file $HOME/.config/nginx/ssl/localhost.crt -key-file $HOME/.config/nginx/ssl/localhost.key $doms if [[ $(systemctl --user is-active nginx) = active ]] then echo "reloading nginx" systemctl --user reload-or-restart --user nginx fi