1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-09 07:25:23 +02:00

minor tweaks

This commit is contained in:
Daniel Hansson 2018-09-18 11:03:16 +02:00 committed by GitHub
parent 9b6857854a
commit 8ae2da6376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,12 +69,14 @@ Space view.
# Requires:
- curl
- wget
- A service for documize
- wget
- bash
- A service for Documize (/etc/init.d/documize)
VERSION="$(curl -s https://api.github.com/repos/documize/community/releases | grep 'tag_name' | cut -d\" -f4 | head -1)"
service documize stop
sleep 2 # Wait for the service to stop completely
rm -f /bin/documize-community-linux-amd64
if wget https://github.com/documize/community/releases/download/$VERSION/documize-community-linux-amd64 -P /bin/
then