Skip to content

Commit 9e6d02e

Browse files
committed
Added a Docker run script that sets the umask on start [#2348]
1 parent 04e06f6 commit 9e6d02e

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
#
3+
# ComiXed - A digital comic book library management application.
4+
# Copyright (C) 2025, The ComiXed Project
5+
#
6+
# This program is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with this program. If not, see <http://www.gnu.org/licenses>
18+
19+
realpath() {
20+
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
21+
}
22+
23+
ME=$(realpath "$0")
24+
REALRUN=$(dirname "${ME}")/run.sh
25+
26+
umask 0002
27+
$REALRUN $@

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ VOLUME /library
3131
VOLUME /imports
3232
VOLUME /config
3333

34-
CMD ["bash", "/app/comixed-release/bin/run.sh", "-L", "/library/comixed.log", "-c", "/config"]
34+
CMD ["bash", "/app/comixed-release/bin/docker-run.sh", "-L", "/library/comixed.log", "-c", "/config"]

0 commit comments

Comments
 (0)