Matermost UPGRADE

 cd /tmp

wget https://releases.mattermost.com/5.37.4/mattermost-5.37.4-linux-amd64.tar.gz

tar -xf mattermost*.gz --transform='s,^[^/]\+,\0-upgrade,'

sudo systemctl stop mattermost

cd /opt && sudo find mattermost/ mattermost/client/ -mindepth 1 -maxdepth 1 \! \( -type d \( -path mattermost/client -o -path mattermost/client/plugins -o -path mattermost/config -o -path mattermost/logs -o -path mattermost/plugins -o -path mattermost/data -o -path mattermost/opt \) -prune \) | sort | sudo xargs rm -r

sudo cp -an /tmp/mattermost-upgrade/. mattermost/

sudo chown -R mattermost:mattermost mattermost

cd mattermost

sudo setcap cap_net_bind_service=+ep ./bin/mattermost

sudo systemctl start mattermost

sudo rm -r /tmp/mattermost-upgrade/

sudo rm -i /tmp/mattermost*.gz

Комментарии

Популярные сообщения из этого блога

Максимальное количество VPN подключений в Windows

Антибрут RDP (RDP Defender)

Автоматическое обновление Mikrotik