Skip to content

Commit

Permalink
Display the command that installs wkhtmltopdf
Browse files Browse the repository at this point in the history
It is difficult to tell from the output of apt-get which packages were
requested, because they are interleaved with their dependencies.

Also factor it out into a separate script.
  • Loading branch information
tom93 committed Jan 6, 2024
1 parent 438a109 commit 4722014
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion script/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ bash script/install/postgresql.bash || exit 1 # create user & db if it doesn't e

bash script/install/imagemagick.bash || exit 1 # install imagemagick

[ -n "$CI" ] || sudo apt-get install wkhtmltopdf xvfb || exit 1 # for pdfkit; skip in CI
[ -n "$CI" ] || bash script/install/wkhtmltopdf.bash || exit 1 # for pdfkit; skip in CI

bash script/install/nztrain.bash || exit 1 # fix files & directory structure

Expand Down
5 changes: 5 additions & 0 deletions script/install/wkhtmltopdf.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

cmd="sudo apt-get install wkhtmltopdf xvfb"
echo "$ $cmd"
$cmd || exit 1

0 comments on commit 4722014

Please sign in to comment.