Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snipe-IT upgrade script? #2017

Open
JedMeister opened this issue Jan 9, 2025 · 0 comments
Open

Snipe-IT upgrade script? #2017

JedMeister opened this issue Jan 9, 2025 · 0 comments

Comments

@JedMeister
Copy link
Member

A user has recently posted on the forums that the version of Snipe-IT on our v18.0 appliance is a bit dated. He noted that he tried to update Snipe-IT himself but had troubles. He didn't mention what he'd tried or what went wrong, but I did a quick test myself and was able to update it relatively easily (instructions below).

It occurs to me that perhaps we could include a script to update Snipe-IT (and perhaps upstream software on other appliances?). Because we have no control over the changes between versions, there is a risk that it may potentially fail and leave the server in a broken state. And/or it might be destructive if user data already exists. So we'd need to be careful to make the risks clear.

Perhaps we could give the option to run the update script on first boot? (Noting the risk). And/or we could force (or at least encourage) users to create TKLBAM (or other) backup first?!

Another consideration is whether or not the new version will be compatible with the PHP version in the current appliance. In this case, the current latest Snipe-IT version (v7.x) works fine with the default TKL v18.0 PHP version (v8.2). However that my not be the case in the future.

I'd be interested to hear thoughts about this idea from others.

Anyway, here's the Snipe-IT update instructions:


Log into the Snipe-IT appliance terminal - as root; or on AWS MP server run sudo su first. Then run these commands:

cd /var/www/snipe-it
git pull
chown -R www-data:www-data ./
turnkey-composer install --no-dev --prefer-source
turnkey-composer dump-autoload
turnkey-artisan migrate
turnkey-artisan config:clear
turnkey-artisan route:clear
turnkey-artisan cache:clear
turnkey-artisan view:clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant