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

View file

@ -2,7 +2,6 @@
read -P "Install main config [yN] ? " inst 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 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 for file in (find custom -type f)
sudo cp -r custom/* /var/lib/forgejo/custom/ sudo install -o forgejo -g forgejo -m a=,u=rw -D $file /var/lib/forgejo/$file
sudo chown -R forgejo:forgejo /var/lib/forgejo/custom/ end
sudo chmod -R a=,u=rwx /var/lib/forgejo/custom/