Skip to content

Commit 80b2544

Browse files
author
Paramtamtam
committed
Fix issue #3
1 parent 090767b commit 80b2544

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this package will be documented in this file.
44

55
The format is based on [Keep a Changelog][keepachangelog] and this project adheres to [Semantic Versioning][semver].
66

7+
## v1.3.1
8+
9+
### Fixed
10+
11+
- `can't create directory '/opt/html/nginx-error-pages'` error [#3]
12+
13+
[#3]:https://github.com/tarampampam/error-pages/issues/3
14+
715
## v1.3.0
816

917
### Added

docker/docker-entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ if [ -n "$TEMPLATE_NAME" ]; then
1212

1313
ln -f -s "/opt/html/$TEMPLATE_NAME/"* /opt/html;
1414

15+
# on `docker restart` next directory keep existing: <https://github.com/tarampampam/error-pages/issues/3>
16+
if [ -d /opt/html/nginx-error-pages ]; then
17+
rm -Rf /opt/html/nginx-error-pages;
18+
fi;
19+
1520
# next directory is required for easy nginx `error_page` usage
1621
mkdir /opt/html/nginx-error-pages;
1722
ln -f -s "/opt/html/$TEMPLATE_NAME/"* /opt/html/nginx-error-pages;

0 commit comments

Comments
 (0)