Update documentation.
This commit is contained in:
61
README.upgrade
Normal file
61
README.upgrade
Normal file
@ -0,0 +1,61 @@
|
||||
|
||||
# ====================
|
||||
# - Upgrading CryptPad
|
||||
# ====================
|
||||
|
||||
# see: https://docs.cryptpad.org/en/admin_guide/maintenance.html#upgrading-cryptpad
|
||||
|
||||
# - Note!
|
||||
# -
|
||||
# - Always read the release notes before upgrading, as there may be changes
|
||||
# - that require special consideration.
|
||||
|
||||
|
||||
cryptpad_user=cryptpad
|
||||
|
||||
|
||||
# - Stop cryptpad
|
||||
# -
|
||||
systemctl stop cryptpad
|
||||
|
||||
|
||||
# Stop iptables firewall
|
||||
#
|
||||
ipt-firewall-server flush
|
||||
ip6t-firewall-server
|
||||
|
||||
|
||||
# Login as CryptPad user
|
||||
#
|
||||
su - ${cryptpad_user}
|
||||
|
||||
|
||||
# - Backup existing installation
|
||||
# -
|
||||
cp -a cryptpad cryptpad.BAK.$(date +%Y-%m-%d-%H%M)
|
||||
|
||||
|
||||
# - Change into installation directory
|
||||
# -
|
||||
cd cryptpad
|
||||
|
||||
# - Update Git repository
|
||||
# -
|
||||
git pull
|
||||
npm update
|
||||
npm run install:components
|
||||
|
||||
|
||||
exit
|
||||
|
||||
|
||||
# Restart firewll
|
||||
#
|
||||
ipt-firewall-server
|
||||
ip6t-firewall-server
|
||||
|
||||
|
||||
# - Start cryptpad
|
||||
# -
|
||||
systemctl start cryptpad
|
||||
|
Reference in New Issue
Block a user