File tree Expand file tree Collapse file tree 7 files changed +6
-6
lines changed Expand file tree Collapse file tree 7 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ apt-get update >/dev/null
9
9
10
10
# Older versions of Debian don't have lsb_release by default, so
11
11
# install that if we have to.
12
- which lsb_release || apt-get install -y lsb-release
12
+ which lsb_release || apt-get --yes install lsb-release
13
13
14
14
# Load up the release information
15
15
DISTRIB_CODENAME=$( lsb_release -c -s)
@@ -19,14 +19,14 @@ REPO_DEB_URL="http://apt.puppetlabs.com/puppetlabs-release-${DISTRIB_CODENAME}.d
19
19
# --------------------------------------------------------------------
20
20
# NO TUNABLES BELOW THIS POINT
21
21
# --------------------------------------------------------------------
22
- if [ " $EUID " -ne " 0" ]; then
22
+ if [ " $EUID " != " 0" ]; then
23
23
echo " This script must be run as root." >&2
24
24
exit 1
25
25
fi
26
26
27
27
# Install wget if we have to (some older Debian versions)
28
28
echo " Installing wget..."
29
- apt-get install -y wget > /dev/null
29
+ apt-get --yes install wget > /dev/null
30
30
31
31
# Install the PuppetLabs repo
32
32
echo " Configuring PuppetLabs repo..."
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ apt-get update >/dev/null
28
28
29
29
# Install wget if we have to (some older Ubuntu versions)
30
30
echo " Installing wget..."
31
- apt-get install -y wget > /dev/null
31
+ apt-get --yes install wget > /dev/null
32
32
33
33
# Install the PuppetLabs repo
34
34
echo " Configuring PuppetLabs repo..."
@@ -45,8 +45,8 @@ echo "Puppet installed!"
45
45
46
46
# Install RubyGems for the provider
47
47
echo " Installing RubyGems..."
48
- if [ $DISTRIB_CODENAME != " trusty" ]; then
49
- apt-get install -y rubygems > /dev/null
48
+ if [ " $DISTRIB_CODENAME " != " trusty" ]; then
49
+ apt-get --yes install rubygems > /dev/null
50
50
fi
51
51
gem install --no-ri --no-rdoc rubygems-update
52
52
update_rubygems > /dev/null
You can’t perform that action at this time.
0 commit comments