From d6dd50182bde8d9529e6de779bb1925c98b9692f Mon Sep 17 00:00:00 2001 From: zen Date: Mon, 11 Apr 2022 15:45:42 -0700 Subject: [PATCH] small tweaks --- ingredients/copper | 4 ++++ ingredients/iron | 2 +- recipes/alchemy.sh | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ingredients/copper b/ingredients/copper index 22b1239..a202c2e 100644 --- a/ingredients/copper +++ b/ingredients/copper @@ -92,6 +92,10 @@ initialize_nginx() { sudo mkdir -p /etc/nginx/logs } +refresh_nginx() { + sudo systemctl reload nginx +} + make_site() { SITE=${1} shift diff --git a/ingredients/iron b/ingredients/iron index 1708d28..e7c9422 100644 --- a/ingredients/iron +++ b/ingredients/iron @@ -119,7 +119,7 @@ build_service_from_template() { activate_service() { SERVICE=$1 - sudo systemctl status ${SERVICE} &> /dev/null + sudo systemctl status ${SERVICE} > /dev/null return_code=$? case $return_code in diff --git a/recipes/alchemy.sh b/recipes/alchemy.sh index d2e8798..36f5cf9 100755 --- a/recipes/alchemy.sh +++ b/recipes/alchemy.sh @@ -96,8 +96,7 @@ if [ -z "$UPDATED" ]; then sudo dnf upgrade ;; "mac") - install - sudo brew update + brew update ;; esac remember "UPDATED=true"