Moved notes to comments

This commit is contained in:
David Thurstenson 2022-05-27 12:35:43 -05:00
parent a3d660201a
commit 37c921f6c6
1 changed files with 16 additions and 12 deletions

View File

@ -2,22 +2,26 @@
####
# Notes
#
# Main jobs
#
# - Start zeroteir-one
# - Check that it's running and continuing to run
# - Start sshd
# - Check that it's running and continuing to run
# - Start weechat in tmux
# - Check that it's running and continuing to run
# Runtime Config
# Copy authorized_keys secret to the user's ssh config folder
# (symlinking will not do, because sshd checks perms of the file tree above the target of the link)
install -Dm 600 -o thurstylark -g thurstylark /run/secrets/tl-weechat-authorizedkeys /home/thurstylark/.ssh/authorized_keys
####
# Service startup
# Start zerotier-one in daemon mode
zerotier-one -d
# Start sshd
sshd
tmux -f ~/.tmux.conf -L tl-weechat new-session -ds tl-weechat weechat
####
# Start weechat within tmux as thurstylark
runuser -u thurstylark -- tmux -f ~/.tmux.conf -L tl-weechat new-session -ds tl-weechat weechat