ensure that the webupd8 repo is added before refreshing its contents #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
prevent this problem:
ExceptionInfo Error prevented completion of phase: Error executing script :$(getent passwd ubuntu | cut -d: -f6)/.ssh/ && chown --recursive ubuntu $ (getent passwd ubuntu | cut -d: -f6)/.ss$(getent passwd ubuntu | cut -d: -f6)/.ssh/; } || { echo "Directory $ (getent passwd ubuntu | cut -d: -f6)/.ssh/" fail
:cmd echo "Update package list for repository webupd8team-java-$(lsb_release -c -s)..."
{ echo "package-manager update ..."
{ aptitude update || true; } || { echo "package-manager update " failed; exit 1; } >&2
echo "...done"; } || { echo "Update package list for repository webupd8team-java-$(lsb_release -c -s)" failed; exit 1; } >&2
echo "...done"
echo "Accept Oracle license..."
{ echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections; } || { echo "Accept Oracle license" failed; exit 1; } >&2
echo "...done"
echo "Package source..."
{ aptitude install -q -y python-software-properties && aptitude show python-software-properties && add-apt-repository -y ppa:webupd8team/java; } || { echo "Package source" failed; exit 1; } >&2
echo "...done"
echo "Packages..."
{ { debconf-set-selections <<EOF
debconf debconf/frontend select noninteractive
debconf debconf/frontend seen false
EOF
} && aptitude install -q -y curl+ git+ maven+ && aptitude install -q -y --allow-untrusted oracle-java7-installer+ && aptitude search
"?and(?installed, ?name(^curl$))" | grep "curl" && aptitude search "?and(?installed, ?name(^git$))" | grep "git" && aptitude search "
?and(?installed, ?name(^oracle-java7-installer$))" | grep "oracle-java7-installer" && aptitude search "?and(?installed, ?name(^mave
n$))" | grep "maven"; } || { echo "Packages" failed; exit 1; } >&2
echo "...done"
echo "Directory $(getent passwd ubuntu | cut -d: -f6)/.ssh/..."
{ mkdir -m "755" -p
h/ && chmod 755
ed; exit 1; } >&2
echo "...done"