Upgrade SnipeIt

Fonte: ARDITI - WIKI
Saltar para a navegação Saltar para a pesquisa

Before updating depencencies or SnipeIt itself, make a snapshot of the VM library on Proxmox. The steps should be carefully followed in the order in which they are listed as

  • First verify if the server requirements of SnipeIt are present on the server. The most common ones that should be checked are the php version used on the apache and the ubuntu version running on the server.

echo "<?php echo phpversion(); ?>" | php => check php version

lsb_release -a => check ubuntu version

  • Ssh into the machine hosting SnipeIt

ssh library -p 10022 -l arditiadmin

Fill the password field with the password of this user.

  • Create a copy of the files from SnipeIt:

cd /var/www

cp SnipeIt/ SnipeIt.bck -R

  • Go into SnipeIt directory and upgrade SnipeIt, keeping the changes that are needed for it to work with our current setup

cd SnipeIt

git fetch --all --tags

git stash

git stash show => verify that some files are shown to be saved in stash

git merge tags/vX.X.X => Change X.X.X with the version to upgrade to

git stash pop

sudo -u www-data php upgrade.php => Follow the upgrade script, read carefully before choosing any options, and don't close the upgrade before it finishes; some steps take longer

  • Verify that is working, check users and items to make sure the images and information are still present