-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
149 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# dora changelog | ||
|
||
## Version 1.1.0 (2020-03-06) | ||
|
||
### New feature | ||
|
||
- Install [wkhtmltopdf](https://wkhtmltopdf.org/index.html) unless the | ||
environment variable `$NO_WKHTMLTOPDF` is defined. | ||
|
||
## Version 1.0.0 (2020-03-06) | ||
|
||
Initial release. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env bash | ||
|
||
DEST_FILE=/tmp/wkhtmltopdf.deb | ||
|
||
if [ $(id -u) -ne 0 ]; then | ||
echo "This script must be run as root. It serves to install wkhtmltopdf." | ||
exit 1 | ||
fi | ||
|
||
if which wkhtmltopdf; then | ||
echo "wkhtmltopdf already installed: at $(which wkhtmltpdf)" | ||
wkhtmltopdf -V | ||
exit 0 | ||
fi | ||
|
||
if [ "$NO_WKHTMLTOPDF" != "" ]; then | ||
echo "\`\$NO_WKHTMLTOPDF\` is set to $NO_WKHTMLTOPDF" | ||
echo "Will not install wkhtmltopdf." | ||
exit 0 | ||
fi | ||
|
||
echo "wkhtmltopdf not found, attempting to download and install" | ||
set -x -e | ||
curl -L -s "$WKHTMLTOPDF_URL" -o $DEST_FILE | ||
echo "$WKHTMLTOPDF_SUM $DEST_FILE" | sha256sum -c | ||
|
||
apt-get update | ||
dpkg -i $DEST_FILE || apt-get install -f -y --no-install-recommends |