Use install instead of cp in Forgejo install
This commit is contained in:
parent
77212772f3
commit
c7208a8462
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue