Changes between Version 17 and Version 18 of how-to/roundcube-upgrade


Ignore:
Timestamp:
Oct 20, 2022, 1:44:14 AM (3 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • how-to/roundcube-upgrade

    v17 v18  
    3535== Doing an upgrade ==
    3636
    37 Note: Firt do everything in the dev directory as the roundcube-dev user. After testing, repeat for the live site.
     37Note: 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)
    3840
    3941{{{
    40 USER=roundube-dev
    41 DIR=/srv/roundcube-dev
    42 DATABASE=roundcube-dev
    43 
     42# su - roundcube-dev
     43su - roundcube
    4444# run the gc script, so there's no need to backup old session records
    45 su - $USER
    46 cd $DIR
     45# cd /srv/roundcube-dev
     46cd /srv/roundcube-dev
    4747php ./bin/gc.sh
    4848
    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
     50cd ~/
     51# pg_dump -v -b -C roundcube-dev | gzip -9 > roundcube.$(date +%F).sql.gz
     52pg_dump -v -b -C roundcube | gzip -9 > roundcube.$(date +%F).sql.gz
     53}}}
    5254
    53 # fetch source (as user `roundcube-code')
     55=== As roundcube-code
     56
     57{{{
    5458su - roundcube-code
    55 cd $DIR
     59# cd /srv/roundcube-dev
     60cd /srv/roundcube
    5661git fetch gmo
    57 git checkout TAG
     62git checkout <tag>
    5863# composer updates
     64cp composer.json-dist composer.json
    5965composer update --no-dev
    6066# if you get a giant error...
     
    6470# javascript dependencies
    6571php bin/install-jsdeps.sh
     72cd skins/elastic
    6673lessc -x styles/styles.less > styles/styles.css
    6774lessc -x styles/print.less > styles/print.css
    6875lessc -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
     82su - roundcube
     83#cd /srv/roundcube-dev
     84cd /srv/roundcube
     85# database stuff
    7186php ./bin/update.sh
    7287php ./bin/indexcontacts.sh