fix home path
This commit is contained in:
parent
98f7a5f2d7
commit
0d1e12c6c9
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ else
|
||||||
fi
|
fi
|
||||||
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
|
if [ ! -d "${mastodon_home}" ]; then
|
||||||
printf "The home for the user mastodon '%s', doesn't exist." "${mastodon_home}"
|
printf "The home for the user mastodon '%s', doesn't exist." "${mastodon_home}"
|
||||||
exit 2
|
exit 2
|
||||||
|
@ -84,7 +84,7 @@ fi
|
||||||
if [ "${DEBUG}" == "true" ]; then
|
if [ "${DEBUG}" == "true" ]; then
|
||||||
echo "Changing to Mastodon's home directory '${mastodon_home}'..."
|
echo "Changing to Mastodon's home directory '${mastodon_home}'..."
|
||||||
fi
|
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)}')
|
current_tag=$(git name-rev --name-only HEAD | awk 'BEGIN {FS="/"} {print($2)}')
|
||||||
if [ "${current_tag}" != "${tag}" ]; then
|
if [ "${current_tag}" != "${tag}" ]; then
|
||||||
if [ "${DEBUG}" == "true" ]; then
|
if [ "${DEBUG}" == "true" ]; then
|
||||||
|
|
Loading…
Reference in a new issue