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

Comments

parent 03d0a9e7
No related branches found
No related tags found
No related merge requests found
......@@ -1389,6 +1389,8 @@ function upgrade_pleroma {
sudo -u postgres psql pleroma -c "create extension if not exists pg_trgm"
sudo -u postgres psql pleroma -c 'create extension if not exists "uuid-ossp"'
# Handle inconsistent location of mix command
# On x86 /usr/local/bin/mix, on arm /usr/bin/mix
if [ -f /usr/bin/mix ]; then
if grep -q '/usr/local/bin/mix' /etc/systemd/system/pleroma.service; then
sed -i 's|/usr/local/bin/mix|/usr/bin/mix|g' /etc/systemd/system/pleroma.service
......@@ -1885,6 +1887,7 @@ function install_pleroma {
pleroma_set_permissions
# Handle inconsistent location of mix command
# On x86 /usr/local/bin/mix, on arm /usr/bin/mix
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
......
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