diff --git a/install.sh b/install.sh index f95c8b6..f083e28 100644 --- a/install.sh +++ b/install.sh @@ -410,6 +410,8 @@ if [[ "$answer" == "y" ]]; then rm /var/www/html/* chown www-data:www-data /var/www/html + install_pkg cpulimit + su -s /bin/bash -c "cd ${repo_directory} &&\ git clone ${repo_url} &&\ cd ${front_directory} &&\ @@ -418,7 +420,7 @@ if [[ "$answer" == "y" ]]; then echo \"URL=https://${domain_name}\" >> .env &&\ echo \"DIRECTUS_URL=https://cms.${domain_name}\" >> .env &&\ npm install -y &&\ - npm run generate --prerender" www-data + cpulimit -l 80 npm run generate --prerender" www-data cp -r "${front_directory}/.output/public" /var/www/html