feat: make silent mkdir

This commit is contained in:
Julien Oculi 2024-05-30 13:12:07 +02:00
parent cf1191bdc3
commit 277e891b21
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
# Setup caddy config
mkdir /etc/caddy
mkdir -p /etc/caddy
cp -R ./caddy/* /etc/caddy
# Setup caddy service

View file

@ -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