1
mirror of https://github.com/jakejarvis/mastodon-utils.git synced 2025-04-26 09:05:21 -04:00
mastodon-utils/scripts/tootctl_shim.sh

10 lines
209 B
Bash
Executable File

#!/bin/sh
set -e
MASTODON_ROOT=/home/mastodon
tootctl() {
( cd "$MASTODON_ROOT/live" && sudo -u mastodon RAILS_ENV=production "$MASTODON_ROOT/.rbenv/shims/ruby" "$MASTODON_ROOT/live/bin/tootctl" "$@" )
}