From 277e891b2163af7a9046c257996b24b0d22bcec6 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Thu, 30 May 2024 13:12:07 +0200 Subject: [PATCH] feat: make silent `mkdir` --- caddy/_deploy.sh | 2 +- forgejo/_install.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/caddy/_deploy.sh b/caddy/_deploy.sh index 67c20a6..befd2e2 100644 --- a/caddy/_deploy.sh +++ b/caddy/_deploy.sh @@ -1,5 +1,5 @@ # Setup caddy config -mkdir /etc/caddy +mkdir -p /etc/caddy cp -R ./caddy/* /etc/caddy # Setup caddy service diff --git a/forgejo/_install.sh b/forgejo/_install.sh index 66c91c8..b92f213 100644 --- a/forgejo/_install.sh +++ b/forgejo/_install.sh @@ -28,11 +28,11 @@ if [[ $(forgejo -v 2> /dev/null | grep -o "[0-9].[0-9].[0-9]" | head -1) != $LAT fi ## Working directory -mkdir /var/lib/forgejo +mkdir -p /var/lib/forgejo chown forgejo:forgejo /var/lib/forgejo && chmod 750 /var/lib/forgejo ## Config directory -mkdir /etc/forgejo +mkdir -p /etc/forgejo chown root:forgejo /etc/forgejo && chmod 540 /etc/forgejo # Check requirements