From ea8d83f8bf9540a2e2f1b6d48711e6d016fb61c0 Mon Sep 17 00:00:00 2001 From: Fliegerjohn Date: Tue, 1 Oct 2024 22:41:00 +0200 Subject: [PATCH] commit to push --- README.md | 40 +++++++++++++++++++++++++++++++++++++++- init.d/vikunja | 14 ++++++++++++++ 2 files changed, 53 insertions(+), 1 deletion(-) create mode 100755 init.d/vikunja diff --git a/README.md b/README.md index abad1c9..c408966 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,41 @@ # vikunja-on-alpine -Install vikunja on Alpinelinux \ No newline at end of file +Just a few sentences about my vikunja setup. + +First we setup our environment. + +``` +# add user vor vikunja +adduser vikunja --shell /sbin/nologin +# setup dirs +mkdir -p /opt/vikunja +mkdir -p /var/lib/vikunja +mkdir -p /etc/vikunja +chown vikunja:vikunja /var/lib/vikunja +``` + +Now we can download and install the binary as descripted here: https://vikunja.io/docs/installing +But we will not link it to */usr/bin/*. +Now we can copy the sample config inside the unziped dir. + +``` +cp /opt/vikunja/config.yml.sample /etc/vikunja/config.yml +``` + +You can edit it now, so it fits your needs. See the docs here: https://vikunja.io/docs/config-options + +After everything is set up it's time for our init script. +Let's either download the initfile from *init.d/* or copy it to a file namend */etc/init.d/vikunja*. Don't forget to make it executeable. + +``` +chmod +x /etc/init.d/vikunja +``` + +Now it's time to start vikunja the first time. +``` +rc-service vikunja start +``` +If everything is working as espected you can anable vikunja to start it automaticaly. +``` +rc-update add vikunja +``` diff --git a/init.d/vikunja b/init.d/vikunja new file mode 100755 index 0000000..c70b22d --- /dev/null +++ b/init.d/vikunja @@ -0,0 +1,14 @@ +#!/sbin/openrc-run + +name=vikunja +description="Vikunja" +supervisor="supervise-daemon" +command="/opt/vikunja/vikunja" +command_user="vikunja:vikunja" +command_args="" +supervise_daemon_args=" -d /var/lib/vikunja" + +depend() { + after net +} +