diff --git a/.forgejo/workflows/main.yaml b/.forgejo/workflows/main.yaml index 89a0f23..c74d14a 100644 --- a/.forgejo/workflows/main.yaml +++ b/.forgejo/workflows/main.yaml @@ -51,8 +51,8 @@ jobs: umask 077 printf '%s' "$SSH_PRIVATE_KEY" | base64 -d > private_key SSHOPTS="-i private_key -o StrictHostKeyChecking=accept-new" - rsync -e "ssh ${SSHOPTS}" ods root@ods.adyxax.org:/usr/local/bin/ - ssh ${SSHOPTS} root@ods.adyxax.org "systemctl restart ods" + rsync -e "ssh ${SSHOPTS}" ods ods@ods.adyxax.org: + ssh ${SSHOPTS} ods@ods.adyxax.org "chmod +x ods; systemctl --user restart ods" env: SSH_PRIVATE_KEY: '${{ secrets.SSH_PRIVATE_KEY }}' publish: diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..86e70f2 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## 1.0.0 - 2025-03-15 + +### Added + +- Initial release. diff --git a/README.md b/README.md index 44aa91d..f5f82b8 100644 --- a/README.md +++ b/README.md @@ -29,22 +29,16 @@ file, sorry for not sharing it. ## Systemd service -I use this simple systemd service unit to run ODS: +I use this simple systemd user service unit to run ODS as an unprivileged user: ``` ini [Unit] -After=network-online.target Description=ods.adyxax.org service -Wants=network-online.target [Service] -DynamicUser=yes Environment="ODS_PORT=8090" ExecStart=/usr/local/bin/ods Type=simple - -[Install] -WantedBy=multi-user.target ``` ## Nginx reverse proxy