4 Commits

Author SHA1 Message Date
just-mn
bdf694d7a7 add explnation for lingering in README 2026-02-22 15:49:36 +03:00
738e40ba48 script adduser-space 2026-02-22 14:34:11 +02:00
3d3c28807c Merge pull request 'docs' (#1) from init into main
Reviewed-on: #1
Reviewed-by: just-mn <just-mn@noreply.localhost>
2026-02-22 12:02:32 +00:00
2f09a841bc pr answered 2026-02-22 14:00:42 +02:00
5 changed files with 13 additions and 11 deletions

View File

@@ -2,3 +2,9 @@
## Docs ## Docs
docs folder includes some documentation about how to use server. Please read docs and ask questions if you don't understand how to use smth directly or in issues docs folder includes some documentation about how to use server. Please read docs and ask questions if you don't understand how to use smth directly or in issues
## Scripts
### [adduser-script](/scripts/adduser-space)
enables lingering after creating a user\
lingering means user's systemd services are continue work after logout and start with system start

View File

@@ -1,5 +0,0 @@
don't forget to
```bash
sudo loginctl enable-linger $USER
```

View File

@@ -9,8 +9,3 @@ On that server we use podman instead of docker because it's:
## How to use? ## How to use?
Exactly the same as docker, but, obviously, instead of `docker` write `podman`. More documentation find [there](https://podman.io/docs) Exactly the same as docker, but, obviously, instead of `docker` write `podman`. More documentation find [there](https://podman.io/docs)
Maybe (just maybe) you'll need to run this thing (but I still not ceratin if it's necessary):
```sh
systemctl --user enable --now podman.socket
```

View File

@@ -11,7 +11,7 @@ This file explains which ports are used and for what reason (please categorize t
## Rules ## Rules
If you want to add some extra port, then please: If you want to add some extra port, then please:
1. Check prs of other people 1. Check opened prs of other people
2. Use 1024+ (because user for caddy isn't root and I don't want to change smth so please) 2. Use 1024+ (because user for caddy isn't root and I don't want to change smth so please)
There will be more, but that's all for now There will be more, but that's all for now

6
scripts/adduser-space Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
username=$1
useradd -m -s /bin/bash "$username"
loginctl enable-linger "$username"
echo "$username"