minor changes to build_report.sh
This commit is contained in:
parent
a19e7667e6
commit
40a611585e
|
|
@ -30,8 +30,14 @@ echo "Filename: $filename"
|
||||||
echo "Weeks ago: $weeks_ago"
|
echo "Weeks ago: $weeks_ago"
|
||||||
echo "Report date: $report_date"
|
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
|
echo 'zx28tb' | /usr/bin/sudo -S launchctl load -w /System/Library/LaunchAgents/com.apple.fontd.useragent.plist
|
||||||
cd /Users/mfolkerts/smartCane/r_app
|
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'))"
|
Rscript -e "rmarkdown::render('CI_report_dashboard_planet.Rmd', output_file='$filename', params=list(ref='$ref', report_date='$report_date'))"
|
||||||
|
|
@ -49,7 +49,7 @@ public function handle(): void
|
||||||
|
|
||||||
$process = new Process($command);
|
$process = new Process($command);
|
||||||
$process->setTimeout(220);
|
$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->setEnv(['PATH' => $currentPath.':/usr/local/Cellar/pandoc/3.1.8/bin/pandoc']);
|
||||||
// $process->setTimeout(36000); // stel een geschikte timeout in
|
// $process->setTimeout(36000); // stel een geschikte timeout in
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue