add permissions for /usr/lib/jvm (#3105)

This commit is contained in:
Dmitry Shibanov
2021-04-08 10:43:59 +03:00
committed by GitHub
parent f29cc02bef
commit 37a897095f

View File

@@ -55,6 +55,8 @@ update-java-alternatives -s /usr/lib/jvm/adoptopenjdk-${DEFAULT_JDK_VERSION}-hot
echo "JAVA_HOME=/usr/lib/jvm/adoptopenjdk-${DEFAULT_JDK_VERSION}-hotspot-amd64" | tee -a /etc/environment
# add extra permissions to be able execute command without sudo
chmod -R 777 /usr/lib/jvm
# Install Ant
apt-fast install -y --no-install-recommends ant ant-optional
echo "ANT_HOME=/usr/share/ant" | tee -a /etc/environment