Go to file
2023-12-12 16:28:41 +01:00
nginx_cryptpad.conf.tmpl update nginx template. 2022-09-22 14:34:39 +02:00
nginx_cryptpad.conf.tmpl.00 update documentation.. 2022-09-22 14:32:29 +02:00
README.copy-userdata-to-new-installation Update dokumentation. 2023-12-12 16:28:41 +01:00
README.install Update dokumentation. 2023-12-12 16:28:41 +01:00
README.install-node.js Add file 'README.install-node.js'. 2023-12-11 14:59:47 +01:00
README.install.00 save old file 'README.install' to 'README.install.00'. 2023-12-11 15:51:42 +01:00
README.see-also Add file 'README.see-also'. 2021-04-05 11:11:05 +02:00
README.upgrade.00 file 'README.upgrade' is obsolete. 2023-12-11 19:42:59 +01:00

# ====================
# - Upgrading CryptPad
# ====================

# - Note!
# -
# - Always read the release notes before upgrading, as there may be changes
# - that require special consideration.

# - Stop cryptpad
# -
systemctl stop cryptpad


# - Backup existing installation
# -
cp -a /var/www/cryptpad /var/www/cryptpad.BAK.$(date +%Y-%m-%d-%H%M)

# - Change into installation directory
# -
cd /var/www/cryptpad

# - Update Git repository
# -
su www-data -s /bin/bash -c "git pull"

# - Update 'npm'
# -
su www-data -s /bin/bash -c "npm update"

# - Update 'bower'
# -
su www-data -s /bin/bash -c "bower update"

# - Maybe more updates
# -
   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 1.8.4 → 1.8.8    │
   │   Run npm i -g bower to update      │
   │                                     │
   ╰─────────────────────────────────────╯


# - Start cryptpad
# -
systemctl start cryptpad