some tidying remove unneeded copy

This commit is contained in:
sparklyballs
2018-02-07 21:26:20 +00:00
parent 3fe9925064
commit b570e58958

View File

@@ -17,16 +17,17 @@ RUN \
php7-pdo_sqlite \
php7-tokenizer \
tar && \
mkdir -p /var/www/localhost/heimdall && \
echo "**** install heimdall ****" && \
VERSION="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
echo "**Installing Heimdall ${VERSION}**" && \
mkdir -p \
/var/www/localhost/heimdall && \
curl -o \
/tmp/heimdall.tar.gz -L \
"https://github.com/linuxserver/Heimdall/archive/${VERSION}.tar.gz" && \
tar xf \
/tmp/heimdall.tar.gz -C \
/tmp && \
cp -R /tmp/Heimdall-*/* /var/www/localhost/heimdall/ && \
/var/www/localhost/heimdall --strip-components=1 && \
echo "** cleanup **" && \
rm -rf \
/tmp/*