2 update script for pleroma fe
imo edited this page 2017-11-06 09:04:17 +00:00

Info

There is a little update script, which you can use with cron or manually. It download the latest artifact zip from pipelines, compare the md5sum checksum and update it if needed. The script should work if you set up pleroma-fe with the Dual boot with Qvitter manual in mind.

Installation

  1. Download the script via git:

    git clone https://git.pleroma.social/imo/update_pleroma-fe.git

  2. Change into the cloned folder with cd update_pleroma-fe

  3. Edit the script with your favored editor and change the variables to your needs:

    DESTDIR - path to the root of your GS or pA installation

    DESTDIR_OWNER and DESTDIR_GROUP - owner and group, who owns the folder described in DESTDIR

    PINDEX_NAME - the name of the pleroma index file, e.g. if you open pleroma via https://example.com/pleroma.html, it's pleroma.html.

    OLD_PFE_MD5_PATH - path to file in which the md5 checksum is stored

    EXCLUDE - if you edited files, for example config.json, and you don't want them to get overwritten, add them here (separated with whitespace)

  4. Move script and make it executable:

    mv update_pleromafe.sh /usr/local/bin/ && chmod +x /usr/local/bin/update_pleromafe.sh

  5. Add to cron.weekly:

    ln -s /usr/local/bin/update_pleromafe.sh /etc/cron.weekly/update_pleromafe.sh

Additonal information

If you execute it with -v it will give some output.