Add install_fontawesome.sh script
This commit is contained in:
parent
154f9a93ea
commit
430a3d7286
1 changed files with 22 additions and 0 deletions
|
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# make a temporary directory and cd into it
|
||||||
|
TEMPDIR=$(mktemp -d)
|
||||||
|
pushd "$TEMPDIR"
|
||||||
|
|
||||||
|
# curl the colorbox zip and unpack it
|
||||||
|
curl -L https://use.fontawesome.com/releases/v6.4.0/fontawesome-free-6.4.0-web.zip --output fontawesome.zip
|
||||||
|
unzip fontawesome.zip
|
||||||
|
|
||||||
|
# Prepare the fontawesome directory
|
||||||
|
chmod u+rw /var/www/data/project/web/
|
||||||
|
mkdir -p /var/www/data/project/web/libraries
|
||||||
|
rm -rf /var/www/data/project/web/libraries/fontawesome
|
||||||
|
|
||||||
|
# Move over the fontawesome zip file
|
||||||
|
mv fontawesome-* /var/www/data/project/web/libraries/fontawesome
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
popd
|
||||||
|
rm -rf "$TEMPDIR"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue