diff --git a/files/update_mastodon.sh b/files/update_mastodon.sh index d9b1b20..4568f96 100755 --- a/files/update_mastodon.sh +++ b/files/update_mastodon.sh @@ -81,7 +81,7 @@ else pre_command="" fi -mastodon_home=$(grep "^mastodon:" /etc/passwd | awk 'BEGIN {FS=":"} {print($6)}') +mastodon_home="$(grep "^mastodon:" /etc/passwd | awk 'BEGIN {FS=":"} {print($6)}')/live" if [ ! -d "${mastodon_home}" ]; then printf "The home for the user mastodon '%s', doesn't exist." "${mastodon_home}" exit 2