Fix cryptpad upgrade
This commit is contained in:
parent
dd43031028
commit
db0856c3f0
|
@ -37,7 +37,7 @@ SHOW_ICANN_ADDRESS_ON_ABOUT=0
|
||||||
CRYPTPAD_ONION_PORT=8119
|
CRYPTPAD_ONION_PORT=8119
|
||||||
CRYPTPAD_PORT=9003
|
CRYPTPAD_PORT=9003
|
||||||
CRYPTPAD_REPO="https://github.com/xwiki-labs/cryptpad"
|
CRYPTPAD_REPO="https://github.com/xwiki-labs/cryptpad"
|
||||||
CRYPTPAD_COMMIT='52d344c3d1404d75d2bf4ae8845e5c024e85ec7f'
|
CRYPTPAD_COMMIT='cfc9ce33d6c7034a13cb0e6d606de6fba38697e0'
|
||||||
CRYPTPAD_DIR=/etc/cryptpad
|
CRYPTPAD_DIR=/etc/cryptpad
|
||||||
|
|
||||||
cryptpad_variables=(ONION_ONLY)
|
cryptpad_variables=(ONION_ONLY)
|
||||||
|
@ -101,9 +101,12 @@ function upgrade_cryptpad {
|
||||||
set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
|
set_repo_commit $CRYPTPAD_DIR "cryptpad commit" "$CRYPTPAD_COMMIT" $CRYPTPAD_REPO
|
||||||
|
|
||||||
cd $CRYPTPAD_DIR
|
cd $CRYPTPAD_DIR
|
||||||
|
npm upgrade
|
||||||
npm install
|
npm install
|
||||||
|
su -c 'echo "2" | bower update' - cryptpad
|
||||||
|
su -c 'bower install --config.interactive=false' - cryptpad
|
||||||
cryptpad_generate_api_config
|
cryptpad_generate_api_config
|
||||||
su -c 'bower install' - cryptpad
|
chown -R cryptpad:cryptpad $CRYPTPAD_DIR
|
||||||
|
|
||||||
systemctl start cryptpad
|
systemctl start cryptpad
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue