diff --git a/files/update_mastodon.sh b/files/update_mastodon.sh index ad4f9a0..f76f49e 100755 --- a/files/update_mastodon.sh +++ b/files/update_mastodon.sh @@ -118,17 +118,17 @@ if [ "${current_tag}" != "${tag}" ]; then echo "Running bundle install..." fi if [ "${dummy}" == "true" ]; then - echo sudo -u mastodon bundle install + echo sudo -u mastodon "${mastodon_home}/bin/bundle" install else - sudo -u mastodon bundle install + sudo -u mastodon "${mastodon_home}/bin/bundle" install fi if [ "${DEBUG}" == "true" ]; then echo "Running yarm install..." fi if [ "${dummy}" == "true" ]; then - echo sudo -u mastodon yarn install --frozen-lockfile + echo sudo -u mastodon "${mastodon_home}/bin/yarn" install --frozen-lockfile else - sudo -u mastodon yarn install --frozen-lockfile + sudo -u mastodon "${mastodon_home}/bin/yarn" install --frozen-lockfile fi if [ "${DEBUG}" == "true" ]; then echo "Restarting Mastodon services..."