crytpapd: fix run.sh

This commit is contained in:
Wonderfall
2017-07-14 05:35:27 +02:00
parent dccd302ebf
commit c21b1f384f
2 changed files with 5 additions and 1 deletions

13
cryptpad/run.sh Executable file
View 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