From 0d1e12c6c924960701c1b7ded688bf4b494c7161 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 16 Feb 2024 18:26:54 +0200 Subject: [PATCH] fix home path --- files/update_mastodon.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/update_mastodon.sh b/files/update_mastodon.sh index f87987f..dba5058 100755 --- a/files/update_mastodon.sh +++ b/files/update_mastodon.sh @@ -75,7 +75,7 @@ else fi fi -mastodon_home="$(grep "^mastodon:" /etc/passwd | awk 'BEGIN {FS=":"} {print($6)}')/live" +mastodon_home="$(grep "^mastodon:" /etc/passwd | awk 'BEGIN {FS=":"} {print($6)}')" if [ ! -d "${mastodon_home}" ]; then printf "The home for the user mastodon '%s', doesn't exist." "${mastodon_home}" exit 2 @@ -84,7 +84,7 @@ fi if [ "${DEBUG}" == "true" ]; then echo "Changing to Mastodon's home directory '${mastodon_home}'..." fi -cd "${mastodon_home}" || exit 3 +cd "${mastodon_home}/live" || exit 3 current_tag=$(git name-rev --name-only HEAD | awk 'BEGIN {FS="/"} {print($2)}') if [ "${current_tag}" != "${tag}" ]; then if [ "${DEBUG}" == "true" ]; then