diff --git a/bin/bootstrap_certificates b/bin/bootstrap_certificates index 1b9a0dd6bf..605ee99609 100755 --- a/bin/bootstrap_certificates +++ b/bin/bootstrap_certificates @@ -4,13 +4,13 @@ printf "Domain root: " read -r domain_root printf "Subdomain (can be empty): " read -r sub_domain -read -r signed printf "Use certificate signed by Let's Encrypt (Y/n): " +read -r signed [ "${signed}" = "${signed#[Yy]}" ] signed=$? -if [ $signed ]; then +if [ $signed -ne 0 ]; then printf "Email: " read -r email fi diff --git a/composer.json b/composer.json index b238ff8d29..aabf4f45fa 100644 --- a/composer.json +++ b/composer.json @@ -78,7 +78,7 @@ }, "post-install-cmd": [ "@auto-scripts", - "cp -n bin/pre-commit .git/hooks" + "cp -fu bin/pre-commit .git/hooks" ], "post-update-cmd": [ "@auto-scripts"