From 25dfda1493d7f5d8fb44eedc32ca3f6f81cff383 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 24 Oct 2017 11:30:46 +0100 Subject: [PATCH] Run cryptpad install script for mesh --- src/freedombone-app-cryptpad | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index c675a1b3..88ea5c11 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -342,12 +342,16 @@ chown -R cryptpad:cryptpad $CRYPTPAD_DIR su -c 'bower install' - cryptpad cp config.example.js config.js EOF + chmod +x $rootdir/usr/bin/install_cryptpad + chroor "$rootdir" /usr/bin/install_cryptpad if [ ! -f $rootdir$CRYPTPAD_DIR/config.js ]; then echo $'Cryptpad config file not found' exit 628252 fi + rm $rootdir/usr/bin/install_cryptpad + sed -i "s|httpPort:.*|httpPort: $CRYPTPAD_PORT,|g" $rootdir$CRYPTPAD_DIR/config.js sed -i "s|// domain:|domain:|g" $rootdir$CRYPTPAD_DIR/config.js sed -i 's|openFileLimit:.*|openFileLimit: 1024,|g' $rootdir$CRYPTPAD_DIR/config.js