From: Shane Date: Sun, 11 Jan 2026 02:31:07 +0000 (+0000) Subject: fix gitweb/set-owner X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=66aa6a48d40756140276a926c52de94be17a94cb;p=nutratech%2Fvps-root.git fix gitweb/set-owner --- diff --git a/Makefile b/Makefile index 6c504ef..4b15fcd 100644 --- a/Makefile +++ b/Makefile @@ -121,7 +121,10 @@ ifndef OWNER endif ifdef SUDO_USER @echo "Setting owner as $(SUDO_USER)..." - su -P $(SUDO_USER) -c "bash scripts/set_gitweb_owner.sh '$(OWNER)'" + @cp -f scripts/set_gitweb_owner.sh /tmp/set_gitweb_owner.sh + @chmod +rx /tmp/set_gitweb_owner.sh + su -P $(SUDO_USER) -c "cd /tmp && bash /tmp/set_gitweb_owner.sh '$(OWNER)'" + @rm -f /tmp/set_gitweb_owner.sh else @echo "Setting owner..." bash scripts/set_gitweb_owner.sh "$(OWNER)"