Changes between Version 17 and Version 18 of how-to/roundcube-upgrade
- Timestamp:
- Oct 20, 2022, 1:44:14 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
how-to/roundcube-upgrade
v17 v18 35 35 == Doing an upgrade == 36 36 37 Note: Firt do everything in the dev directory as the roundcube-dev user. After testing, repeat for the live site. 37 Note: First do everything in the dev directory as the roundcube-dev user. After testing, repeat for the live site using the roundcube user. 38 39 === As roundcube (or roundcube-dev) 38 40 39 41 {{{ 40 USER=roundube-dev 41 DIR=/srv/roundcube-dev 42 DATABASE=roundcube-dev 43 42 # su - roundcube-dev 43 su - roundcube 44 44 # run the gc script, so there's no need to backup old session records 45 su - $USER 46 cd $DIR45 # cd /srv/roundcube-dev 46 cd /srv/roundcube-dev 47 47 php ./bin/gc.sh 48 48 49 # backup database 50 cd /home/$USER 51 pg_dump -v -b -C DATABASE | gzip -9 > roundcube.$(date +%F).sql.gz 49 # backup database into home directory 50 cd ~/ 51 # pg_dump -v -b -C roundcube-dev | gzip -9 > roundcube.$(date +%F).sql.gz 52 pg_dump -v -b -C roundcube | gzip -9 > roundcube.$(date +%F).sql.gz 53 }}} 52 54 53 # fetch source (as user `roundcube-code') 55 === As roundcube-code 56 57 {{{ 54 58 su - roundcube-code 55 cd $DIR 59 # cd /srv/roundcube-dev 60 cd /srv/roundcube 56 61 git fetch gmo 57 git checkout TAG62 git checkout <tag> 58 63 # composer updates 64 cp composer.json-dist composer.json 59 65 composer update --no-dev 60 66 # if you get a giant error... … … 64 70 # javascript dependencies 65 71 php bin/install-jsdeps.sh 72 cd skins/elastic 66 73 lessc -x styles/styles.less > styles/styles.css 67 74 lessc -x styles/print.less > styles/print.css 68 75 lessc -x styles/embed.less > styles/embed.css 69 su - $USER 70 # database stuff (as user roundcube) 76 }}} 77 78 === As roundcube-dev or roundcube user 79 80 {{{ 81 # su - roundcube-dev 82 su - roundcube 83 #cd /srv/roundcube-dev 84 cd /srv/roundcube 85 # database stuff 71 86 php ./bin/update.sh 72 87 php ./bin/indexcontacts.sh