mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-02 07:05:42 +00:00
crytpapd: fix run.sh
This commit is contained in:
13
cryptpad/run.sh
Executable file
13
cryptpad/run.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Creating customize folder
|
||||
mkdir -p customize
|
||||
[ -z "$(ls -A customize)" ] && echo "Creating customize folder" \
|
||||
&& cp -R customize.dist/* customize/ \
|
||||
&& cp config.example.js customize/config.js
|
||||
|
||||
# Linking config.js
|
||||
[ ! -h config.js ] && echo "Linking config.js" && ln -s customize/config.js config.js
|
||||
|
||||
chown -R $UID:$GID /cryptpad
|
||||
exec su-exec $UID:$GID /sbin/tini -- node ./server.js
|
Reference in New Issue
Block a user