mirror of
https://github.com/netdata/netdata.git
synced 2025-03-18 06:43:02 +00:00
create a file with version; added proper information
This commit is contained in:
parent
ba23cb3339
commit
8aba002790
3 changed files with 94 additions and 21 deletions
|
@ -84,4 +84,38 @@ rm "${NETDATA_INSTALL_PATH}/sbin" \
|
|||
|
||||
# -----------------------------------------------------------------------------
|
||||
# copy it to the netdata build dir
|
||||
cp "${NETDATA_INSTALL_PATH}.gz.run" .
|
||||
|
||||
NOWNER="unknown"
|
||||
ORIGIN="$(git config --get remote.origin.url)"
|
||||
if [[ "${ORIGIN}" =~ ^git@github.com:.*/netdata.*$ ]]
|
||||
then
|
||||
NOWNER="${ORIGIN/git@github.com:/}"
|
||||
NOWNER="${NOWNER/\/netdata*/}"
|
||||
|
||||
elif [[ "${ORIGIN}" =~ ^https://github.com/.*/netdata.*$ ]]
|
||||
then
|
||||
NOWNER="${ORIGIN/https:\/\/github.com\//}"
|
||||
NOWNER="${NOWNER/\/netdata*/}"
|
||||
fi
|
||||
|
||||
# make sure it does not have any slashes in it
|
||||
NOWNER="${NOWNER//\//_}"
|
||||
|
||||
if [ "${NOWNER}" = "firehol" ]
|
||||
then
|
||||
NOWNER=
|
||||
else
|
||||
NOWNER="-${NOWNER}"
|
||||
fi
|
||||
|
||||
VERSION="$(git describe)"
|
||||
[ -z "${VERSION}" ] && VERSION="undefined"
|
||||
|
||||
FILE="netdata-${VERSION}${NOWNER}.gz.run"
|
||||
|
||||
cp "${NETDATA_INSTALL_PATH}.gz.run" "${FILE}"
|
||||
echo >&2 "Self-extracting installer copied to '${FILE}'"
|
||||
|
||||
[ -f netdata-latest.gz.run ] && rm netdata-latest.gz.run
|
||||
ln -s "${FILE}" netdata-latest.gz.run
|
||||
echo >&2 "Self-extracting installer linked to 'netdata-latest.gz.run'"
|
||||
|
|
|
@ -9,18 +9,37 @@
|
|||
|
||||
Released under GPL v3+
|
||||
|
||||
You are about to build and install netdata to your system.
|
||||
You are about to install netdata to this system.
|
||||
|
||||
It will be installed at these locations:
|
||||
It will be installed at:
|
||||
|
||||
- the daemon at /opt/netdata/usr/sbin/netdata
|
||||
- config files in /opt/netdata/etc/netdata
|
||||
- web files in /opt/netdata/usr/share/netdata
|
||||
- plugins in /opt/netdata/usr/libexec/netdata
|
||||
- cache files in /opt/netdata/var/cache/netdata
|
||||
- db files in /opt/netdata/var/lib/netdata
|
||||
- log files in /opt/netdata/var/log/netdata
|
||||
- pid file at /opt/netdata/var/run/netdata.pid
|
||||
/opt/netdata
|
||||
|
||||
The following changes will be made to your system:
|
||||
|
||||
# USERS / GROUPS
|
||||
User 'netdata' and group 'netdata' will be added, if not present.
|
||||
|
||||
# LOGROTATE
|
||||
This file will be installed:
|
||||
|
||||
- /etc/logrotate.d/netdata
|
||||
|
||||
# SYSTEM INIT
|
||||
If this system runs with systemd:
|
||||
|
||||
- /etc/systemd/system/netdata.service
|
||||
|
||||
or, for older Centos, Debian/Ubuntu or OpenRC Gentoo:
|
||||
|
||||
- /etc/init.d/netdata will be created
|
||||
|
||||
|
||||
This package can also update a netdata installation that has been
|
||||
created with another version of it.
|
||||
|
||||
Your netdata configuration will be retained.
|
||||
After installation, netdata will be (re-)started.
|
||||
|
||||
netdata re-distributes a lot of open source software components.
|
||||
Check its full license at:
|
||||
|
|
|
@ -9,20 +9,40 @@
|
|||
|
||||
Released under GPL v3+
|
||||
|
||||
You are about to build and install netdata to your system.
|
||||
You are about to install netdata to this system.
|
||||
|
||||
It will be installed at these locations:
|
||||
netdata will be installed at:
|
||||
|
||||
- the daemon at /opt/netdata/usr/sbin/netdata
|
||||
- config files in /opt/netdata/etc/netdata
|
||||
- web files in /opt/netdata/usr/share/netdata
|
||||
- plugins in /opt/netdata/usr/libexec/netdata
|
||||
- cache files in /opt/netdata/var/cache/netdata
|
||||
- db files in /opt/netdata/var/lib/netdata
|
||||
- log files in /opt/netdata/var/log/netdata
|
||||
- pid file at /opt/netdata/var/run/netdata.pid
|
||||
/opt/netdata
|
||||
|
||||
The following changes will be made to your system:
|
||||
|
||||
# USERS / GROUPS
|
||||
User 'netdata' and group 'netdata' will be added, if not present.
|
||||
|
||||
# LOGROTATE
|
||||
This file will be installed if logrotate is present.
|
||||
|
||||
- /etc/logrotate.d/netdata
|
||||
|
||||
# SYSTEM INIT
|
||||
If this system runs with systemd:
|
||||
|
||||
- /etc/systemd/system/netdata.service
|
||||
|
||||
or, for older Centos, Debian/Ubuntu or OpenRC Gentoo:
|
||||
|
||||
- /etc/init.d/netdata will be created
|
||||
|
||||
|
||||
This package can also update a netdata installation that has been
|
||||
created with another version of it.
|
||||
|
||||
Your netdata configuration will be retained.
|
||||
After installation, netdata will be (re-)started.
|
||||
|
||||
netdata re-distributes a lot of open source software components.
|
||||
Check its full license at:
|
||||
https://github.com/firehol/netdata/blob/master/LICENSE.md
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue