diff --git a/mastodon.sh b/mastodon.sh index 5ec2c7f..f7ccab1 100644 --- a/mastodon.sh +++ b/mastodon.sh @@ -1,11 +1,20 @@ #!/bin/bash #written by Daniel Wenzlik 2024 - https://danielwenzlik.com +#modified by Daniel Wenzlik 2026 - https://danielwenzlik.com #Script under the GNU AGPLv3 license. +# making rbenv/Ruby accessible for the user/script +export HOME="/home/mastodon" +export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:/usr/local/bin:/usr/bin:/bin" + +# initialise rbenv +eval "$("$HOME/.rbenv/bin/rbenv" init - bash)" + #using the correct directory echo "Navigating to the Mastodon Directory now"; cd /home/mastodon/live/; +export RAILS_ENV=production #deleting cache files echo "Clearing cache";