mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
nextcloud: sha512 checksum
This commit is contained in:
@ -78,6 +78,9 @@ RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/r
|
||||
&& sed -i 's|;session.save_path = "/tmp"|session.save_path = "/data/session"|g' /etc/php7.1/php.ini \
|
||||
&& mkdir /nextcloud \
|
||||
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2 \
|
||||
&& wget -q https://download.nextcloud.com/server/daily/latest.tar.bz2.sha256 \
|
||||
&& CHECKSUM_STATE=$(echo -n $(sha256sum -c latest.tar.bz2.sha256 latest.tar.bz2) | tail -c 2) \
|
||||
&& if [ "${CHECKSUM_STATE}" != "OK" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \
|
||||
&& tar xjf latest.tar.bz2 --strip 1 -C /nextcloud \
|
||||
&& apk del ${BUILD_DEPS} php7.1-pear php7.1-dev \
|
||||
&& rm -rf /var/cache/apk/* /tmp/* /root/.gnupg
|
||||
|
Reference in New Issue
Block a user