From 201586399c273b2b47a0f32954ae9a6603b06129 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Sat, 25 Jan 2025 18:59:01 +0200 Subject: [PATCH] docs: Fixing useradd and rsync (closes #1) --- docs/mkdocs/forgejo-ci.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/mkdocs/forgejo-ci.md b/docs/mkdocs/forgejo-ci.md index 77c73f8..e86b607 100644 --- a/docs/mkdocs/forgejo-ci.md +++ b/docs/mkdocs/forgejo-ci.md @@ -16,7 +16,7 @@ Install required stuff and things on Debian based system $ sudo apt-get install rsync Make a user to have limited access -$ sudo useradd adduser --home /varasto/verkkojuuri --system verkkojuuri --shell /bin/sh +$ sudo useradd adduser --home /varasto/verkkojuuri --system --shell /bin/sh verkkojuuri $ cd /varasto/verkkojuuri $ sudo -u verkkojuuri ssh-keygen $ sudo -u verkkojuuri cat .ssh/id_rsa @@ -47,7 +47,9 @@ secrets. In practise you'll make it execute ``` console $ mkdocs build -$ rsync -e "ssh -rclthv --exclude --delete-after .git site/ verkkojuuri@jakest.us:site +$ rsync -rclthv --exclude --delete-after .git site/ verkkojuuri@jakest.us:site +probs needs flags to allow skipping host verification key or maybe install them +using action variables ``` Oh you need it more detailed, okay.