Requested improvements

- Moved the template files
- Replaced . with $PWD
- Made more descriptive errors in the templates
This commit is contained in:
Chiedo
2017-03-07 14:28:38 -05:00
parent fa286caca2
commit 3f4b1e69c7
5 changed files with 13 additions and 13 deletions

View File

@@ -53,10 +53,10 @@ gpasswd -M "" dokku
[[ -f /etc/logrotate.d/nginx ]] && sed -i -e 's/create 0640 www-data dokku/create 0640 www-data adm/g' /etc/logrotate.d/nginx
# Create nginx error templates
sudo mkdir -p /etc/nginx/dokku-errors
sudo cp ./templates/400-error.html /etc/nginx/dokku-errors/400-error.html
sudo cp ./templates/404-error.html /etc/nginx/dokku-errors/404-error.html
sudo cp ./templates/500-error.html /etc/nginx/dokku-errors/500-error.html
sudo mkdir -p $DOKKU_LIB_ROOT/data/nginx-vhosts/dokku-errors
sudo cp $PWD/templates/400-error.html $DOKKU_LIB_ROOT/data/nginx-vhosts/dokku-errors/400-error.html
sudo cp $PWD/templates/404-error.html $DOKKU_LIB_ROOT/data/nginx-vhosts/dokku-errors/404-error.html
sudo cp $PWD/templates/500-error.html $DOKKU_LIB_ROOT/data/nginx-vhosts/dokku-errors/500-error.html
# patch broken nginx 1.8.0 logrotate