Hi guys its an official Holiday today which means I’ve got a lot of time to take care of my Synology packages.
The first one is the owncloud package, which has been updated to 4.5.1. Nothing special so far, but then Synology-Version-Number-Counting strikes!
For some reason it detects the 4.5.1 to be lower than the previous 4.5 and quits the update process. This wouldn’t be a problem if at least one of the scripts in the package would be executed so I could change the number by running this script and you wouldn’t recognize anything, but it fails before anything is done to the package. It also means there will be no update button in the package center for the people who installed 4.5 because the installed version is detected to be newer.
There are a few workarounds to update from 4.5 to 4.5.1
1. Quick and dirty: Uninstall ownCloud and install the new one -> You will loose all your data and settings
2. owerwrite the INFO file which contains the version number
- Download my patched INFO file
- copy it into the public folder of your Disk Station
- connect to your DiskStation via SSH
- type
cp /volumeX/public/INFO /var/packages/owncloud
replace the X with the volume number that contains your public folder
- type exit, the editor closes
- Now the update button appears in the package center, you can update normally
3. DIY: Edit the version in the INFO file (afterwards the update button appears)
- connect to your Disk Station using SSH (How do I do that?)
- type
cd /var/packages/owncloud
- type
vi INFO
the text editor vi should start
- in vi navigate to the third line which is: version=“4.5-012″
- hit <a>
- add .0 after 4.5 so the changed line is version=“4.5.0-012″
- hit <Esc>
- type :wq and hit <Enter>
- type exit, the editor closes
- Now the update button appears in the package center, you can update normally
Another way is to backup the data and config folder in the /web folder, deinstall owncloud, install the new version and recover it. If you do this you have to take care of the folder permissions.
I apologize for the circumstances, if you know an easier way to update, let me know.
Manual Download link:
https://www.dropbox.com/sh/4i5mjlhlnoe1qg4/B-SLEOoZH2