Просмотр исходного кода

Docs updates and update to tar package

Torkel Ödegaard 10 лет назад
Родитель
Сommit
3d8beb918b
3 измененных файлов с 18 добавлено и 10 удалено
  1. 8 5
      docs/sources/installation/debian.md
  2. 8 4
      docs/sources/installation/rpm.md
  3. 2 1
      tasks/options/compress.js

+ 8 - 5
docs/sources/installation/debian.md

@@ -10,20 +10,23 @@ page_keywords: grafana, installation, debian, ubuntu, guide
 
 Description | Download
 ------------ | -------------
-.deb for Debian-based Linux | [grafana_2.0.0-beta3_amd64.deb](https://grafanarel.s3.amazonaws.com/builds/grafana_2.0.0-beta3_amd64.deb)
+.deb for Debian-based Linux | [grafana_2.0.0_amd64.deb](https://grafanarel.s3.amazonaws.com/builds/grafana_2.0.0_amd64.deb)
 
 ## Install
 
-    $ wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.0.0-beta3_amd64.deb
+    $ wget https://grafanarel.s3.amazonaws.com/builds/grafana_2.0.0_amd64.deb
     $ sudo apt-get install -y adduser libfontconfig
-    $ sudo dpkg -i grafana_2.0.0-beta3_amd64.deb
+    $ sudo dpkg -i grafana_2.0.0_amd64.deb
 
 ## APT Repository
 Add the following line to your `/etc/apt/sources.list`
 
-    deb https://packagecloud.io/grafana/testing/debian/ wheezy main
+    deb https://packagecloud.io/grafana/stable/debian/ wheezy main
+
+Use the above line even if you are on Ubuntu or another debian version. There is also testing
+repository if you want beta or release candidates.
 
-Use the above line even if you are on Ubuntu or another debian version.
+    deb https://packagecloud.io/grafana/testing/debian/ wheezy main
 
 Then add the [Package Cloud](https://packagecloud.io/grafana) key used to sign packages.
 

+ 8 - 4
docs/sources/installation/rpm.md

@@ -10,17 +10,17 @@ page_keywords: grafana, installation, centos, fedora, opensuse, redhat, guide
 
 Description | Download
 ------------ | -------------
-.RPM for Fedora / RHEL / CentOS Linux | [grafana-2.0.0_beta3-1.x86_64.rpm](https://grafanarel.s3.amazonaws.com/builds/grafana-2.0.0_beta3-1.x86_64.rpm)
+.RPM for Fedora / RHEL / CentOS Linux | [grafana-2.0.0-1.x86_64.rpm](https://grafanarel.s3.amazonaws.com/builds/grafana-2.0.0-1.x86_64.rpm)
 
 ## Install
 You can install using yum
 
-    $ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.0.0_beta3-1.x86_64.rpm
+    $ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-2.0.0-1.x86_64.rpm
 
 Or manually using `rpm`
 
     $ sudo yum install initscripts fontconfig
-    $ sudo rpm -Uvh grafana-2.0.0_beta3-1.x86_64.rpm
+    $ sudo rpm -Uvh grafana-2.0.0-1.x86_64.rpm
 
 ## YUM Repository
 
@@ -28,7 +28,7 @@ Add the following to a new file at `/etc/yum.repos.d/grafana.repo`
 
     [grafana]
     name=grafana
-    baseurl=https://packagecloud.io/grafana/testing/el/6/$basearch
+    baseurl=https://packagecloud.io/grafana/stable/el/6/$basearch
     repo_gpgcheck=1
     gpgcheck=0
     enabled=1
@@ -36,6 +36,10 @@ Add the following to a new file at `/etc/yum.repos.d/grafana.repo`
     sslverify=1
     sslcacert=/etc/pki/tls/certs/ca-bundle.crt
 
+There is also testing repository if you want beta or release candidates.
+
+    baseurl=https://packagecloud.io/grafana/testing/el/6/$basearch
+
 Install Grafana
 
     $ sudo yum install grafana

+ 2 - 1
tasks/options/compress.js

@@ -1,4 +1,5 @@
 module.exports = function(config) {
+  'use strict';
 
   var task = {
     release: {
@@ -10,7 +11,7 @@ module.exports = function(config) {
           expand: true,
           cwd: '<%= tempDir %>',
           src: ['**/*'],
-          dest: '<%= pkg.name %>/',
+          dest: '<%= pkg.name %>-<%= pkg.version %>/',
         },
         {
           expand: true,