Skip to content

Instantly share code, notes, and snippets.

@sftblw
Last active April 16, 2018 03:55
Show Gist options
  • Select an option

  • Save sftblw/d498c3cd6186a163e84115f0c345e4d4 to your computer and use it in GitHub Desktop.

Select an option

Save sftblw/d498c3cd6186a163e84115f0c345e4d4 to your computer and use it in GitHub Desktop.
pleroma_update.sh : A simple script to update pleroma, run as sudo at ~ of pleroma account. for now, It's for ArchLinux
systemctl stop pleroma
cd /home/pleroma/pleroma/
/usr/bin/git pull
/usr/bin/mix deps.get
/usr/bin/chown -R pleroma /home/pleroma/pleroma
/usr/bin/mix deps.compile
/usr/bin/mix ecto.migrate
systemctl start pleroma
  • auto yes to allow afk
  • git shallow copy and remove history
  • replace absolute path to fit to various dist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment