#!/bin/bash sudo -u mastodon python3 /srv/mastodon/mastodon-auto-update.py if [ $? -eq 100 ]; then # If the exit code is 100, restart the Mastodon services echo "Restarting Mastodon..." sudo systemctl restart 'mastodon-*' fi