From 0bcf353badcd06c10643a9372d54d7dfa4d6a1d2 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 31 Aug 2023 17:41:42 +0400 Subject: [PATCH] Bugfixes: sudo shell, raw files links --- docs/selfhost.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/selfhost.md b/docs/selfhost.md index 432c575..87bb5ab 100644 --- a/docs/selfhost.md +++ b/docs/selfhost.md @@ -5,6 +5,7 @@ Install Node and NPM: ```bash # Debian, Ubuntu +# TODO: Really old version in repos, use nodesource sudo apt install nodejs npm # CentOS sudo yum install nodejs @@ -18,7 +19,7 @@ Create a user for txtdot, log in: ```bash # Not Alpine (coreutils) sudo useradd -r -m -s /sbin/nologin -U txtdot -sudo -u txtdot -i +sudo -u txtdot bash # Alpine (busybox) doas addgroup -S txtdot @@ -48,9 +49,9 @@ Log out from txtdot account: `exit` ### Add txtdot to autostart Either using systemd unit file: ```bash -wget https://github.com/TxtDot/txtdot/blob/main/txtdot.service +wget https://raw.githubusercontent.com/TxtDot/txtdot/main/config/txtdot.service sudo chown root:root txtdot.service -sudo chmod 755 txtdot.service +sudo chmod 644 txtdot.service sudo mv txtdot.service /etc/systemd/system/ sudo systemctl daemon-reload sudo systemctl enable txtdot @@ -59,7 +60,7 @@ sudo systemctl start txtdot Or using OpenRC script: ```bash -wget -O txtdot https://github.com/TxtDot/txtdot/blob/main/txtdot.init +wget -O txtdot https://raw.githubusercontent.com/TxtDot/txtdot/main/config/txtdot.init doas chown root:root txtdot doas chmod 755 txtdot doas mv txtdot /etc/init.d/