minor changes to build_report.sh

This commit is contained in:
Martin Folkerts 2024-01-30 16:06:55 +01:00
parent a19e7667e6
commit 40a611585e
2 changed files with 11 additions and 5 deletions

View file

@ -30,8 +30,14 @@ echo "Filename: $filename"
echo "Weeks ago: $weeks_ago"
echo "Report date: $report_date"
echo '\n'
if [ "$(uname)" == "Darwin" ]; then
# Commando's voor Mac
echo 'zx28tb' | /usr/bin/sudo -S launchctl load -w /System/Library/LaunchAgents/com.apple.fontd.useragent.plist
cd /Users/mfolkerts/smartCane/r_app
elif [ "$(uname)" == "Linux" ]; then
# Commando's voor Linux
cd /var/www/vhosts/smartcane.sobit.nl/r_app
else
echo "Onbekend systeem"
fi
Rscript -e "rmarkdown::render('CI_report_dashboard_planet.Rmd', output_file='$filename', params=list(ref='$ref', report_date='$report_date'))"

View file

@ -49,7 +49,7 @@ public function handle(): void
$process = new Process($command);
$process->setTimeout(220);
$currentPath = '/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin/Users/mfolkerts/anaconda3/bin:/Library/Apple/usr/bin';
$currentPath = '/usr/bin:/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin/Users/mfolkerts/anaconda3/bin:/Library/Apple/usr/bin';
$process->setEnv(['PATH' => $currentPath.':/usr/local/Cellar/pandoc/3.1.8/bin/pandoc']);
// $process->setTimeout(36000); // stel een geschikte timeout in