1
0
mirror of https://git.envs.net/envs/ops.git synced 2024-06-15 13:26:39 +00:00

update envs_toot and add post writes username. output looks like: username | your message

This commit is contained in:
creme 2019-11-30 21:32:13 +01:00
parent 3d528b6502
commit e9edd2ba1c
Signed by: creme
GPG Key ID: C147C3B7FBDF08D0

View File

@ -3,7 +3,7 @@
printf 'toot as envs.net\n\n' printf 'toot as envs.net\n\n'
if [ -n "$1" ] && [ -z "$2" ]; then if [ -n "$1" ] && [ -z "$2" ]; then
sudo -u services /usr/bin/toot post "$1" sudo -u services /usr/bin/toot post "$(id -un) | $1"
else else
printf 'usage: envs_toot "your message"\n' printf 'usage: envs_toot "your message"\n'
fi fi