Skip to content
Snippets Groups Projects
Commit 03d0a9e7 authored by Bob Mottram's avatar Bob Mottram
Browse files

Handle inconsistent location of mix command

parent 3848800c
No related branches found
No related tags found
No related merge requests found
......@@ -1884,6 +1884,15 @@ function install_pleroma {
pleroma_set_permissions
# Handle inconsistent location of mix command
if [ ! -f /usr/bin/mix ]; then
if [ -f /usr/local/bin/mix ]; then
if grep -q '/usr/bin/mix' /etc/systemd/system/pleroma.service; then
sed -i 's|/usr/bin/mix|/usr/local/bin/mix|g' /etc/systemd/system/pleroma.service
fi
fi
fi
systemctl daemon-reload
systemctl enable pleroma
systemctl start pleroma
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment