50 lines
1.1 KiB
Plaintext
50 lines
1.1 KiB
Plaintext
|
|
# ====================
|
|
# - 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
|
|
|