if matomo installed take it into consideration in the webhook

This commit is contained in:
Valentin 2024-05-29 17:24:41 +02:00
parent 2fce8f8d9f
commit 3d7ab485db
2 changed files with 5 additions and 1 deletions

View File

@ -13,6 +13,10 @@ fi
jq '.scripts |= with_entries(.value |= gsub("\\bnuxt \\b"; "./node_modules/nuxt/bin/nuxt.mjs "))' package.json > temp.json && mv temp.json package.json jq '.scripts |= with_entries(.value |= gsub("\\bnuxt \\b"; "./node_modules/nuxt/bin/nuxt.mjs "))' package.json > temp.json && mv temp.json package.json
if [ -f "/var/www/repositories/${repo_name}/plugins/matomo-plugin.client.js" ]; then
npm install --save vue-matomo
fi
node --max-old-space-size=250 `which npm` install -y node --max-old-space-size=250 `which npm` install -y
node --max-old-space-size=250 `which npm` run generate --prerender node --max-old-space-size=250 `which npm` run generate --prerender

View File

@ -13,7 +13,7 @@ echo -e "${BLUE}https://${matomo_url}/index.php?module=SitesManager${RESET}"
echo -e "${PURPLE}${BOLD}Enter the Website ID :${RESET}" echo -e "${PURPLE}${BOLD}Enter the Website ID :${RESET}"
read matomo_website_id read matomo_website_id
mkdir ${FRONT_DIRECTORY}/plugins mkdir -p ${FRONT_DIRECTORY}/plugins
cp assets/matomo-plugin.client.js ${FRONT_DIRECTORY}/plugins cp assets/matomo-plugin.client.js ${FRONT_DIRECTORY}/plugins
chown -R www-data:www-data ${FRONT_DIRECTORY}/plugins chown -R www-data:www-data ${FRONT_DIRECTORY}/plugins