From 0c78e12bf188508d96b2429840757f9f91211dbc Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 6 Nov 2017 11:38:58 +0000 Subject: [PATCH] mix is local --- src/freedombone-app-pleroma | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index a45626b8..1a3e2425 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -490,8 +490,8 @@ function install_elixir { apt-get -yq install esl-erlang apt-get -yq install elixir - if [ ! -f /usr/bin/mix ]; then - echo $'/usr/bin/mix not found after elixir installation' + if [ ! -f /usr/local/bin/mix ]; then + echo $'/usr/local/bin/mix not found after elixir installation' exit 629352 fi } @@ -660,7 +660,7 @@ function install_pleroma { echo 'User=pleroma' >> /etc/systemd/system/pleroma.service echo "WorkingDirectory=/var/www/$PLEROMA_DOMAIN_NAME/htdocs/pleroma" echo "Environment=\"HOME=/var/www/$PLEROMA_DOMAIN_NAME/htdocs\"" >> /etc/systemd/system/pleroma.service - echo 'ExecStart=/usr/bin/mix phx.server' >> /etc/systemd/system/pleroma.service + echo 'ExecStart=/usr/local/bin/mix phx.server' >> /etc/systemd/system/pleroma.service echo 'ExecReload=/bin/kill $MAINPID' >> /etc/systemd/system/pleroma.service echo 'KillMode=process' >> /etc/systemd/system/pleroma.service echo 'Restart=on-failure' >> /etc/systemd/system/pleroma.service