fix real home for mastodon app

This commit is contained in:
Antonio J. Delgado 2024-02-16 15:42:43 +02:00
parent 1a7079fb11
commit d1f54072d4

View file

@ -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