1
Fork 0

Use install instead of cp in Forgejo install

This commit is contained in:
Edgar P. Burkhart 2023-05-16 16:31:12 +02:00
parent 77212772f3
commit c7208a8462
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
1 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@
read -P "Install main config [yN] ? " inst
test $inst = "y"; and sudo install -o forgejo -g forgejo -m a=,u=rw -b -D app.ini /etc/forgejo/app.ini
sudo mkdir -p /var/lib/forgejo/custom
sudo cp -r custom/* /var/lib/forgejo/custom/
sudo chown -R forgejo:forgejo /var/lib/forgejo/custom/
sudo chmod -R a=,u=rwx /var/lib/forgejo/custom/
for file in (find custom -type f)
sudo install -o forgejo -g forgejo -m a=,u=rw -D $file /var/lib/forgejo/$file
end