Skip to content

A script for updating Element-Web instances automatically

License

Notifications You must be signed in to change notification settings

thiccpad/Element-Update

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Element-Update

Prerequisites

This script requires you to have element-web and nginx installed on an Ubuntu/Debian server. It also assumes you have your nginx website config files in /etc/nginx/conf.d/ and your element-web installation in /var/www/element/.

How it works

Element-Updater will check the contents of var/www/element/version once per day and if needed fetch the latest release of Element-Web. It will also disable, reload your nginx config file and produce a logfile located at /var/log/element-update.log

Install

Put element-update.sh to /usr/local/bin or a directory of your choice and move the systemd files to /etc/systemd/system/. Enable both files using

sudo systemctl enable element-update.service
sudo systemctl start element-update.service
sudo systemctl enable element-update.timer
sudo systemctl start element-update.timer

Check element-update.sh for the lines containing element.domain.tld and replace it with the appropriate path to the nginx config of your Element-Web instance's subdomain.

About

A script for updating Element-Web instances automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages