Bugfixes: sudo shell, raw files links

This commit is contained in:
DarkCat09 2023-08-31 17:41:42 +04:00
parent eb689aeb7b
commit 0bcf353bad
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -5,6 +5,7 @@
Install Node and NPM: Install Node and NPM:
```bash ```bash
# Debian, Ubuntu # Debian, Ubuntu
# TODO: Really old version in repos, use nodesource
sudo apt install nodejs npm sudo apt install nodejs npm
# CentOS # CentOS
sudo yum install nodejs sudo yum install nodejs
@ -18,7 +19,7 @@ Create a user for txtdot, log in:
```bash ```bash
# Not Alpine (coreutils) # Not Alpine (coreutils)
sudo useradd -r -m -s /sbin/nologin -U txtdot sudo useradd -r -m -s /sbin/nologin -U txtdot
sudo -u txtdot -i sudo -u txtdot bash
# Alpine (busybox) # Alpine (busybox)
doas addgroup -S txtdot doas addgroup -S txtdot
@ -48,9 +49,9 @@ Log out from txtdot account: `exit`
### Add txtdot to autostart ### Add txtdot to autostart
Either using systemd unit file: Either using systemd unit file:
```bash ```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 chown root:root txtdot.service
sudo chmod 755 txtdot.service sudo chmod 644 txtdot.service
sudo mv txtdot.service /etc/systemd/system/ sudo mv txtdot.service /etc/systemd/system/
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl enable txtdot sudo systemctl enable txtdot
@ -59,7 +60,7 @@ sudo systemctl start txtdot
Or using OpenRC script: Or using OpenRC script:
```bash ```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 chown root:root txtdot
doas chmod 755 txtdot doas chmod 755 txtdot
doas mv txtdot /etc/init.d/ doas mv txtdot /etc/init.d/