Difference between revisions of "CiviCRM/WordPress"
< CiviCRM
Jump to navigation
Jump to search
m |
|||
Line 74: | Line 74: | ||
# make sure you have a backup of your civicrm.settings.php file | # make sure you have a backup of your civicrm.settings.php file | ||
cp $config ~/civicrm.settings.php.bak | cp $config ~/civicrm.settings.php.bak | ||
− | + | backup=/tmp/html.backup | |
− | sudo -u www-data cp -ar /var/www/html | + | mkdir $backup && sudo chown www-data:www-data $backup |
− | + | sudo -u www-data cp -ar /var/www/html $backup | |
− | sudo -u www-data unzip | + | package=https://download.civicrm.org/civicrm-5.3.0-wordpress.zip |
− | rm -r $templates | + | wget $package |
+ | sudo rm -rf $pluginroot/civicrm && sudo -u www-data unzip $package -d $pluginroot | ||
+ | rm -r $templates/ | ||
+ | # upgrade the database by visiting the URL in your browser | ||
+ | /admin.php?page=CiviCRM&q=civicrm/upgrade&reset=1 | ||
# test and then cleanup or revert | # test and then cleanup or revert | ||
− | rm | + | rm $package |
rm ~/civicrm.settings.php.bak | rm ~/civicrm.settings.php.bak | ||
− | sudo rm -rf | + | sudo rm -rf $backup |
</source> | </source> |