2018-03-23 12:36:41 -04:00
|
|
|
#!/bin/sh
|
2018-03-23 13:06:31 -04:00
|
|
|
apt-get update
|
|
|
|
|
|
|
|
apt-get install vim imagemagick optipng --yes
|
|
|
|
|
2018-03-23 13:29:21 -04:00
|
|
|
wget -q https://s3.amazonaws.com/sl-public-dev-assets/ghostscript-9.15.tar.gz -O /tmp/ghostscript-9.15.tar.gz
|
|
|
|
cd /tmp
|
2018-03-23 13:06:31 -04:00
|
|
|
tar -xvf /tmp/ghostscript-9.15.tar.gz
|
|
|
|
cd /tmp/ghostscript-9.15 && ./configure && make && make install
|
2018-03-23 12:36:41 -04:00
|
|
|
npm rebuild
|
2018-05-21 06:13:52 -04:00
|
|
|
mkdir /app/user_files/ /app/uploads/ /app/template_files/
|
|
|
|
chown -R node:node /app/user_files
|
2018-03-23 12:36:41 -04:00
|
|
|
chown -R node:node /app/uploads
|
2018-05-21 06:13:52 -04:00
|
|
|
chown -R node:node /app/template_files
|
|
|
|
ls -al /app
|