Source profile
This commit is contained in:
parent
d841795ff0
commit
b7cdbf1736
1 changed files with 6 additions and 4 deletions
|
@ -97,6 +97,8 @@ 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}/live" || exit 3
|
cd "${mastodon_home}/live" || exit 3
|
||||||
|
# shellcheck disable=SC1091
|
||||||
|
source "${mastodon_home}/.profile"
|
||||||
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}" ] || [ "${reinstall}" ]; then
|
if [ "${current_tag}" != "${tag}" ] || [ "${reinstall}" ]; then
|
||||||
if [ "${DEBUG}" == "true" ]; then
|
if [ "${DEBUG}" == "true" ]; then
|
||||||
|
@ -132,17 +134,17 @@ if [ "${current_tag}" != "${tag}" ] || [ "${reinstall}" ]; then
|
||||||
echo "Running bundle install..."
|
echo "Running bundle install..."
|
||||||
fi
|
fi
|
||||||
if [ "${dummy}" == "true" ]; then
|
if [ "${dummy}" == "true" ]; then
|
||||||
echo sudo -u mastodon "${mastodon_home}/.rbenv/bin/bundle" install
|
echo sudo -u mastodon "${mastodon_home}/.rbenv/shims/bundle" install
|
||||||
else
|
else
|
||||||
sudo -u mastodon "${mastodon_home}/.rbenv/bin/bundle" install
|
sudo -u mastodon "${mastodon_home}/.rbenv/shims/bundle" install
|
||||||
fi
|
fi
|
||||||
if [ "${DEBUG}" == "true" ]; then
|
if [ "${DEBUG}" == "true" ]; then
|
||||||
echo "Running yarm install..."
|
echo "Running yarm install..."
|
||||||
fi
|
fi
|
||||||
if [ "${dummy}" == "true" ]; then
|
if [ "${dummy}" == "true" ]; then
|
||||||
echo sudo -u mastodon "${mastodon_home}/.rbenv/bin/yarn" install --frozen-lockfile
|
echo sudo -u mastodon "${mastodon_home}/live/bin/yarn" install --frozen-lockfile
|
||||||
else
|
else
|
||||||
sudo -u mastodon "${mastodon_home}/.rbenv/bin/yarn" install --frozen-lockfile
|
sudo -u mastodon "${mastodon_home}/live/bin/yarn" install --frozen-lockfile
|
||||||
fi
|
fi
|
||||||
if [ "${DEBUG}" == "true" ]; then
|
if [ "${DEBUG}" == "true" ]; then
|
||||||
echo "Restarting Mastodon services..."
|
echo "Restarting Mastodon services..."
|
||||||
|
|
Loading…
Reference in a new issue