diff --git a/docs/add-user.md b/docs/add-user.md deleted file mode 100644 index b02bed8..0000000 --- a/docs/add-user.md +++ /dev/null @@ -1,5 +0,0 @@ - -don't forget to -```bash -sudo loginctl enable-linger $USER -``` diff --git a/docs/podman.md b/docs/podman.md index 015ea99..7e4098d 100644 --- a/docs/podman.md +++ b/docs/podman.md @@ -9,8 +9,3 @@ On that server we use podman instead of docker because it's: ## How to use? 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 -``` - diff --git a/docs/ports.md b/docs/ports.md index d750c84..bd78128 100644 --- a/docs/ports.md +++ b/docs/ports.md @@ -11,7 +11,7 @@ This file explains which ports are used and for what reason (please categorize t ## Rules 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) There will be more, but that's all for now diff --git a/scripts/adduser-space b/scripts/adduser-space new file mode 100644 index 0000000..511c302 --- /dev/null +++ b/scripts/adduser-space @@ -0,0 +1,6 @@ +#!/bin/bash + +username=$1 +useradd -m -s /bin/bash "$username" +loginctl enable-linger "$username" # for user's systemd services to work after logout and start with system start +echo "$username"