mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-26 02:04:49 +00:00
gitea: fix ordering regression, chmod 750 before ln -s broke symlink creation
This commit is contained in:
@@ -30,8 +30,12 @@ setup_deb_based() {
|
||||
chown -R gitea:gitea /var/lib/gitea/
|
||||
chmod -R 750 /var/lib/gitea/
|
||||
chown root:gitea /etc/gitea
|
||||
chmod 750 /etc/gitea
|
||||
chmod 770 /etc/gitea
|
||||
sudo -u gitea ln -s /var/lib/gitea/data/.ssh/ /etc/gitea/.ssh
|
||||
# sshd's StrictModes rejects pubkey auth if authorized_keys or any parent dir up to
|
||||
# $HOME is group-writable, so 770 can only be transient - tighten it once the gitea
|
||||
# user no longer needs group-write to create the symlink above.
|
||||
chmod 750 /etc/gitea
|
||||
msg_ok "Configured Gitea"
|
||||
|
||||
msg_info "Creating Service"
|
||||
|
||||
Reference in New Issue
Block a user