Modify the logs folder
This commit is contained in:
parent
32405fcdcc
commit
923ba0670b
@ -27,7 +27,7 @@ sudo chmod 750 /usr/local/sbin/gitea-updater
|
|||||||
Create the logs' directory.
|
Create the logs' directory.
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo mkdir -p /var/log/updater/gitea
|
sudo mkdir -p /var/log/updater/gitea-updater
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
set -x
|
set -x
|
||||||
|
|
||||||
# redirect stdout (and stderr to stdout) to a file
|
# redirect stdout (and stderr to stdout) to a file
|
||||||
exec 1> /var/log/updater/gitea/gitea-$(date +%F).log 2>&1
|
exec 1> /var/log/updater/gitea-updater/gitea-$(date +%F).log 2>&1
|
||||||
|
|
||||||
# abort on nonzero exitstatus
|
# abort on nonzero exitstatus
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
Loading…
Reference in New Issue
Block a user