-
Notifications
You must be signed in to change notification settings - Fork 15
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
upgrading problem #70
Comments
You need to update the REPO_TAG in both the "install.env" and the ".env" files. |
Where is the .env file? |
Ignore that, found it. It might be worth having a little script to check the latest version and update those 2 file automatically? |
produced this script to automatically update the 2 files with the latest version number (with a little help form chatGTP) Set your GitHub username and repo namerepo="immich-app/immich" Get the list of tags from the repository (sorted by creation date)tags=$(curl --silent -m 10 --connect-timeout 5 "https://api.github.com/repos/$repo/tags") Check if the curl request was successfulif [ $? -ne 0 ]; then Check if tags are empty or if no tags are foundif [ -z "$tags" ] || [ "$(echo "$tags" | jq '. | length')" -eq 0 ]; then Extract the latest tag (first tag in the list)tag=$(echo "$tags" | jq -r '.[0].name') Check if jq failed to extract the tagif [ -z "$tag" ]; then Print current content of .env and install.env before updating (for debugging)echo "Current content of install.env:" Update the install.env file with the latest tagsed -i -E "s/REPO_TAG=.*/REPO_TAG=$tag/" install.env Update the .env file with the latest tag (same as above)If REPO_TAG is empty or missing, it will be updated or addedsed -i -E "/REPO_TAG=/c\REPO_TAG=$tag" .env Check if the sed command was successful for both filesif [ $? -eq 0 ]; then Print updated content of install.env and .env (for debugging)echo "Updated content of install.env:" |
https://github.com/loeeeee/immich-in-lxc?tab=readme-ov-file#update-the-immich-instance .env in the folder .env file based on the one in install.env, it is |
Hi There,
Firstly, thank you for a great how to, it works flawlessly on Proxmox host.
My problem is upgrading the server. After stopping the server, I have:
REPO_TAG=v1.125.7
but it just reinstalls the original version v1.123.0
What am I missing?
The text was updated successfully, but these errors were encountered: