mix is local

This commit is contained in:
Bob Mottram 2017-11-06 11:38:58 +00:00
parent 9bc6c8f4e5
commit 0c78e12bf1
1 changed files with 3 additions and 3 deletions

View File

@ -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