feat: make silent mkdir
This commit is contained in:
parent
cf1191bdc3
commit
277e891b21
|
@ -1,5 +1,5 @@
|
|||
# Setup caddy config
|
||||
mkdir /etc/caddy
|
||||
mkdir -p /etc/caddy
|
||||
cp -R ./caddy/* /etc/caddy
|
||||
|
||||
# Setup caddy service
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue