alexandregz / gogs-spk

spk (Synology package) to install gogs into Synology NAS
MIT License
54 stars 50 forks source link

Synology DSM SPK - Change run_user to git instead of root #8

Open petmic92 opened 5 years ago

petmic92 commented 5 years ago

Hello, how can I start the package as non root User, for example git? I only get this error: The executing user is not the current user: git -> root Gogs is running, when I enter root, but I want to change it to git-User.

This things I did: I created git-User in DSM Change Ownerships in SSH with chmod -R for Gogs & Git Nothing works.

Any Idea or tutorial?

Best regards Petmic

scotthunt commented 5 years ago

FYI, I found that I could change the USER= and USERNAME= lines in /var/packages/Gogs/scripts/start-stop-status to get it running as non-root.