Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F30676078
raw.txt
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Lokal_Profil
Oct 14 2019, 8:55 AM
2019-10-14 08:55:24 (UTC+0)
Size
500 B
Referenced Files
None
Subscribers
None
raw.txt
View Options
#!/bin/bash
# Send a !log message for the current project to #wikimedia-cloud.
# Usage:
# dologmsg webservice restart
# dologmsg 'deployed commit ab12de34 (T123456)'
labsproject=$(</etc/wmflabs-project)
su_user=$(logname)
message=$*
if [[ $message == "" ]]; then
printf >&2 '%s: no message\n' "$0"
exit 1
fi
if [[ $su_user ]]; then
message="<$su_user> $message"
fi
printf '#wikimedia-cloud !log %s %s\n' "$labsproject" "$message" > /dev/tcp/wm-bot2.wm-bot.eqiad.wmflabs/64834
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8118817
Default Alt Text
raw.txt (500 B)
Attached To
Mode
P9323 dologmsg (for Cloud VPS)
Attached
Detach File
Event Timeline
Log In to Comment