From db0856c3f0efab0e10d5910b9625030d6312a71b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 19 Dec 2017 15:02:38 +0000 Subject: [PATCH] Fix cryptpad upgrade --- src/freedombone-app-cryptpad | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-cryptpad b/src/freedombone-app-cryptpad index 669aea2c..7dbd5a84 100755 --- a/src/freedombone-app-cryptpad +++ b/src/freedombone-app-cryptpad @@ -37,7 +37,7 @@ SHOW_ICANN_ADDRESS_ON_ABOUT=0 CRYPTPAD_ONION_PORT=8119 CRYPTPAD_PORT=9003 CRYPTPAD_REPO="https://github.com/xwiki-labs/cryptpad" -CRYPTPAD_COMMIT='52d344c3d1404d75d2bf4ae8845e5c024e85ec7f' +CRYPTPAD_COMMIT='cfc9ce33d6c7034a13cb0e6d606de6fba38697e0' CRYPTPAD_DIR=/etc/cryptpad cryptpad_variables=(ONION_ONLY) @@ -101,9 +101,12 @@ function upgrade_cryptpad { set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO cd $CRYPTPAD_DIR + npm upgrade npm install + su -c 'echo "2" | bower update' - cryptpad + su -c 'bower install --config.interactive=false' - cryptpad cryptpad_generate_api_config - su -c 'bower install' - cryptpad + chown -R cryptpad:cryptpad $CRYPTPAD_DIR systemctl start cryptpad }