From 2d59dd03849f0527307b731eabbf6df1d94937cc Mon Sep 17 00:00:00 2001 From: Bobban Date: Sat, 23 Sep 2023 12:19:06 +0200 Subject: [PATCH] =?UTF-8?q?Added=20basic=20input=20to=20new=20scripts=20f?= =?UTF-8?q?=C3=B6r=20Mastodon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mastodon/Mastodon-Media-Usage-Report.sh | 1 + Mastodon/Mastodon-Restart-Services.sh | 3 +++ Mastodon/Mostodon-Cleanup.sh | 1 + 3 files changed, 5 insertions(+) create mode 100644 Mastodon/Mastodon-Media-Usage-Report.sh create mode 100644 Mastodon/Mastodon-Restart-Services.sh create mode 100644 Mastodon/Mostodon-Cleanup.sh diff --git a/Mastodon/Mastodon-Media-Usage-Report.sh b/Mastodon/Mastodon-Media-Usage-Report.sh new file mode 100644 index 0000000..f0a5f52 --- /dev/null +++ b/Mastodon/Mastodon-Media-Usage-Report.sh @@ -0,0 +1 @@ +RAILS_ENV=production bin/tootctl media usage \ No newline at end of file diff --git a/Mastodon/Mastodon-Restart-Services.sh b/Mastodon/Mastodon-Restart-Services.sh new file mode 100644 index 0000000..fd615ad --- /dev/null +++ b/Mastodon/Mastodon-Restart-Services.sh @@ -0,0 +1,3 @@ + sudo systemctl restart mastodon-web + sudo systemctl restart mastodon-streaming + sudo systemctl restart mastodon-sidekiq \ No newline at end of file diff --git a/Mastodon/Mostodon-Cleanup.sh b/Mastodon/Mostodon-Cleanup.sh new file mode 100644 index 0000000..52a7904 --- /dev/null +++ b/Mastodon/Mostodon-Cleanup.sh @@ -0,0 +1 @@ +RAILS_ENV=production bin/tootctl media remove-orphans \ No newline at end of file