Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Software | Gitea: Run service as dedicated user "gitea" #5015

Merged
merged 5 commits into from
Dec 2, 2021
Merged

Conversation

MichaIng
Copy link
Owner

@MichaIng MichaIng commented Dec 2, 2021

Status: Ready

Commit list/description:

  • DietPi-Software | Gitea: Run service as dedicated user "gitea" with its home directory "/mnt/dietpi_userdata/gitea" to allow easy transfer and usage of SSH keys for remote access. Align the service with Gogs, regarding network and MariaDB requirement and hardenings.
  • DietPi-Software | Gitea and Gogs conflict with each other as both use port 3000 by default. Use new conflicts system to prevent both being installed concurrently

+ DietPi-Software | Gitea: Run service as dedicated user "gitea" with its home directory "/mnt/dietpi_userdata/gitea" to allow easy transfer and usage of SSH keys for remote access. Align the service with Gogs, regarding network and MariaDB requirement and hardenings.
+ DietPi-Software | Gitea and Gogs conflict with each other as both use port 3000 by default. Use new conflicts system to prevent both being installed concurrently
@MichaIng MichaIng added this to the v7.9 milestone Dec 2, 2021
@MichaIng MichaIng linked an issue Dec 2, 2021 that may be closed by this pull request
+ DietPi-Software | Gitea: Change working directory from repo dir to install dir
+ CHANGELOG | Gitea: The service runs now as dedicated user "gitea" with its home directory "/mnt/dietpi_userdata/gitea" to allow easy transfer and usage of SSH keys for remote access. This applies to newly installed or reinstalled Gitea instances. Many thanks to @LilTrublMakr for reporting the related limitation with the previously used "dietpi" user: #4620
+ DietPi-Software | Gogs: OpenSSH server is not required as the ssh-keygen command is provided by the OpenSSH client package which is fully compatible and uncritical to install. Remove hence the interactive warning and replace the dependency.
+ DietPi-Software | Gitea: Add OpenSSH client dependency as it uses ssh-keygen for creating the public SSH key files
+ DietPi-Software | OpenSSH Server: Make the OpenSSH client a dependency to have it transparently installed separately instead of doing the install marks manually. On uninstall, mark the package for autoremoval, so it is purged as fast as no other package (including the OpenSSH server) depends on it. Align the "apt-mark auto" commands, using the G_EXEC error handler when it's the only package and we can hence easily check whether it's installed or not.
+ DietPi-Software | Gitea: Do not force a non-default repository dir. On initial login, /mnt/dietpi_userdata/gitea/data/gitea-repositories is suggested and created automatically, like other data and logs dirs. Just leave it like that. This doesn't affect reinstalls, so a safe change.
@MichaIng MichaIng merged commit d7bd072 into dev Dec 2, 2021
@MichaIng MichaIng deleted the gitea branch December 2, 2021 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DietPi-Software | Gitea: Run as system user with SSH key option
1 participant