Merge pull request 'Abuse prevention' (#2) from rany/ops:master into master

Reviewed-on: https://git.envs.net/envs/ops/pulls/2
This commit is contained in:
creme 2021-01-10 09:35:58 +00:00
commit 97dd88287b
2 changed files with 2 additions and 2 deletions

View File

@ -2,6 +2,6 @@
printf 'setting up your thelounge account\n\n'
THELOUNGE_HOME=/srv/thelounge sudo -u thelounge /srv/thelounge/.yarn/bin/thelounge add "$USER"
THELOUNGE_HOME=/srv/thelounge sudo -u thelounge /bin/bash -c '/srv/thelounge/.yarn/bin/thelounge add $SUDO_USER'
printf '\nyou can now log in to https://webirc.envs.net as %s with the password you just created.\n' "$USER"

View File

@ -27,7 +27,7 @@ Cmnd_Alias MAKE=/usr/bin/make *
Cmnd_Alias MKDOCS=/usr/local/bin/mkdocs *
#
Cmnd_Alias THELOUNGE=/srv/thelounge/.yarn/bin/thelounge add *
Cmnd_Alias THELOUNGE=/bin/bash -c /srv/thelounge/.yarn/bin/thelounge add $SUDO_USER
#Cmnd_Alias TOOT=/usr/bin/toot post *
# User privilege specification