pkgr 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/data/build_dependencies/debian.yml +4 -0
- data/data/buildpacks/amazon-2014 +1 -1
- data/data/buildpacks/amazon-2015 +1 -1
- data/data/buildpacks/centos-6 +1 -1
- data/data/buildpacks/centos-7 +1 -1
- data/data/buildpacks/centos-8 +4 -0
- data/data/buildpacks/debian-10 +4 -0
- data/data/buildpacks/debian-6 +1 -1
- data/data/buildpacks/debian-7 +1 -1
- data/data/buildpacks/debian-8 +1 -1
- data/data/buildpacks/debian-9 +1 -1
- data/data/buildpacks/fedora-20 +1 -1
- data/data/buildpacks/sles-11 +1 -1
- data/data/buildpacks/sles-12 +1 -1
- data/data/buildpacks/ubuntu-10.04 +1 -1
- data/data/buildpacks/ubuntu-12.04 +1 -1
- data/data/buildpacks/ubuntu-14.04 +1 -1
- data/data/buildpacks/ubuntu-16.04 +1 -1
- data/data/buildpacks/ubuntu-18.04 +1 -1
- data/data/cli/cli.sh.erb +26 -3
- data/data/dependencies/centos.yml +6 -1
- data/lib/pkgr/distributions/base.rb +2 -1
- data/lib/pkgr/distributions/debian.rb +1 -1
- data/lib/pkgr/distributions/ubuntu.rb +3 -3
- data/lib/pkgr/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 564ea525211c15964819eae121133db41de7584b
|
4
|
+
data.tar.gz: 9e8d7b4abc90f369062d3d2523a0f6374c9a341a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b78c0884063dbb2eda33c0a072ab788a90e7829f11076ab52f1ab4eba349b2d8ccef416a6544d85e0c6925969bbc1a9d21e98258ed0ef7c5735a3aff842ae204
|
7
|
+
data.tar.gz: f44786665247d5b47b9ed224c7315a5110342640e6a87a2f6695a6d85f7a53e92a674b1e422af03d2eb21dc6f38fdd5bd5699f1dc0494b698bae42b55dd1ed15
|
data/README.md
CHANGED
data/data/buildpacks/amazon-2014
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/amazon-2015
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/centos-6
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/centos-7
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/debian-6
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-ruby.git,CURL_CONNECT_TIMEOUT=60,CURL_TIMEOUT=300
|
data/data/buildpacks/debian-7
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/debian-8
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/debian-9
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/buildpacks/fedora-20
CHANGED
data/data/buildpacks/sles-11
CHANGED
data/data/buildpacks/sles-12
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
@@ -1,4 +1,4 @@
|
|
1
|
-
https://github.com/pkgr/heroku-buildpack-ruby.git#
|
1
|
+
https://github.com/pkgr/heroku-buildpack-ruby.git#v206-1
|
2
2
|
https://github.com/pkgr/heroku-buildpack-python.git#buildcurl
|
3
3
|
https://github.com/heroku/heroku-buildpack-nodejs.git#v106
|
4
4
|
https://github.com/kr/heroku-buildpack-go.git
|
data/data/cli/cli.sh.erb
CHANGED
@@ -28,6 +28,7 @@ usage() {
|
|
28
28
|
echo " $APP_NAME logs [--tail|-n NUMBER]"
|
29
29
|
echo " $APP_NAME config:get VAR"
|
30
30
|
echo " $APP_NAME config:set VAR=VALUE"
|
31
|
+
echo " $APP_NAME config:unset VAR"
|
31
32
|
echo " $APP_NAME configure"
|
32
33
|
echo " $APP_NAME reconfigure"
|
33
34
|
echo " $APP_NAME restart"
|
@@ -46,6 +47,7 @@ usage() {
|
|
46
47
|
echo ""
|
47
48
|
echo " $APP_NAME restart [process]"
|
48
49
|
echo " This will restart the application (or the given process), in a distribution-independent manner."
|
50
|
+
exit 64
|
49
51
|
}
|
50
52
|
|
51
53
|
DEFAULT_FILE=$(_p "/etc/default/${APP_NAME}")
|
@@ -59,7 +61,19 @@ for file in $(_p "${APP_HOME}/.profile.d")/*.sh; do
|
|
59
61
|
done
|
60
62
|
|
61
63
|
if [ "$APP_CLI" != "" ] ; then
|
62
|
-
|
64
|
+
cli_path="$APP_CLI"
|
65
|
+
if [ ! -e "$cli_path" ]; then
|
66
|
+
cli_path="$APP_HOME/$APP_CLI"
|
67
|
+
fi
|
68
|
+
if [ ! -e "$cli_path" ]; then
|
69
|
+
cli_path="$APP_HOME/bin/$APP_CLI"
|
70
|
+
fi
|
71
|
+
if [ -e "$cli_path" ]; then
|
72
|
+
exec "$cli_path" "$@"
|
73
|
+
else
|
74
|
+
echo "Error: the given CLI ($APP_CLI) does not point to any valid executable"
|
75
|
+
exit 1
|
76
|
+
fi
|
63
77
|
fi
|
64
78
|
|
65
79
|
if [ ! -w "$(_p "/etc/${APP_NAME}/conf.d")" ] ; then
|
@@ -367,13 +381,18 @@ reconfigure() {
|
|
367
381
|
configure --reconfigure
|
368
382
|
}
|
369
383
|
|
384
|
+
config_unset() {
|
385
|
+
local key="${1}"
|
386
|
+
sed -i -r "s/^\s*export\s+${key}.*$//g" $(_p "/etc/${APP_NAME}/conf.d")/*
|
387
|
+
}
|
388
|
+
|
370
389
|
config_set() {
|
371
390
|
# http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_02
|
372
391
|
local key="${1%%=*}"
|
373
392
|
local value="${1#*=}"
|
374
393
|
local file=$(_p "/etc/${APP_NAME}/conf.d/other")
|
375
394
|
touch "$file"
|
376
|
-
|
395
|
+
config_unset "$key"
|
377
396
|
echo "export ${key}=\"${value}\"" >> "${file}"
|
378
397
|
sed -i '/^\s*$/d' "$file"
|
379
398
|
}
|
@@ -466,10 +485,14 @@ while : ; do
|
|
466
485
|
show_env
|
467
486
|
break;;
|
468
487
|
|
488
|
+
config:unset)
|
489
|
+
[ $# -lt 2 ] && usage
|
490
|
+
config_unset "$2"
|
491
|
+
break;;
|
492
|
+
|
469
493
|
config:set)
|
470
494
|
[ $# -lt 2 ] && usage
|
471
495
|
config_set "$2"
|
472
|
-
|
473
496
|
break;;
|
474
497
|
|
475
498
|
config:get)
|
@@ -11,10 +11,10 @@ module Pkgr
|
|
11
11
|
|
12
12
|
def runner
|
13
13
|
@runner ||= case release
|
14
|
-
when /^
|
15
|
-
Runner.new("systemd", "default", "systemctl")
|
16
|
-
else
|
14
|
+
when /^12.04/, /^14.04/
|
17
15
|
Runner.new("upstart", "1.5", "initctl")
|
16
|
+
else
|
17
|
+
Runner.new("systemd", "default", "systemctl")
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
data/lib/pkgr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pkgr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Rohr
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -132,6 +132,8 @@ files:
|
|
132
132
|
- data/buildpacks/amazon-2015
|
133
133
|
- data/buildpacks/centos-6
|
134
134
|
- data/buildpacks/centos-7
|
135
|
+
- data/buildpacks/centos-8
|
136
|
+
- data/buildpacks/debian-10
|
135
137
|
- data/buildpacks/debian-6
|
136
138
|
- data/buildpacks/debian-7
|
137
139
|
- data/buildpacks/debian-8
|