mkdir -p "$IMAGE_NAME_RISOTTO_IMAGE_DIR/usr/local/share" cd "$IMAGE_NAME_RISOTTO_IMAGE_DIR/usr/local/share" app=$(wget https://api.github.com/repos/Piwigo/Piwigo/releases/latest -q -O - | jq -r '.tag_name') wget -q "https://github.com/Piwigo/Piwigo/archive/refs/tags/$app.tar.gz" tar xf *tar.gz rm -f *tar.gz mv Piwigo-* piwigo chown -R root: piwigo cd -