eg-blog

Feed Rss

Archive for the ‘Download / Release Notes’ Category

As some people might have overseen my warnings:
You can loose all your with every update!
Always backup your data (/web/owncloud folder and database)!

Of course I am trying my best this doesn’t happen but I can’t simulate and test all update scenarios.

So please carefully read my update instructions:
This update only works if 5.0.10, 5.0.9 or no ownCloud (fresh install) was installed before.
So because of the 2 different ownCloud packages floating around make sure you have installed my package by checking the Developer tag in the package center. It should be “Synology package maintained at eg-blog.de”. If you have installed the SynoCommunity version you can not migrate to my via package center, you have to migrate manually! Also you can not install the SynoCommunity version and this one side by side.

The update order is: 5.0.7 or less ==> 5.0.9-026 to migrate to new package name ==> 5.0.10 and above. You can not migrate from 5.0.7 or less to 5.0.10 or above directly!

I hope this clears some trouble, Eric

Download: ownCloud5.0.11-028.spk

Dropbox folder containing all owncloud versions.

This package still includes the update routines from 5.0.6 or below but also from the last package so you can update from any 5.x.x version to this one directly.

I have included a .htaccess file in the data folder because of BFGs post. It works fine for me.

Dropbox folder is up to date, repo will be as well.

Have fun with it, Eric.

Script:

 

#!/bin/sh

#--------ownCloud installer script
#--------package maintained at eg-blog.de
WEB=/var/services/web

preinst ()
{
	exit 0
}

postinst ()
{
	echo "$(date +%d.%m.%y_%H:%M:%S): ----installation started----" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	#migrate from old owncloud to new owncloud-eg package
	if [ -d /var/packages/owncloud ]; then
		#backup data folder
		if [ -d $WEB/owncloud/data ]; then
			mkdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration
			mv $WEB/owncloud/data ${SYNOPKG_PKGDEST}/../owncloud_data_migration
			echo "$(date +%d.%m.%y_%H:%M:%S): copied old data folder into backup folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi
		#backup config folder
		if [ -d $WEB/owncloud/config ]; then
			mkdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration
			mv $WEB/owncloud/config ${SYNOPKG_PKGDEST}/../owncloud_config_migration
			echo "$(date +%d.%m.%y_%H:%M:%S): copied old config folder into backup folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi

		# delete old owncloud installation
		if [ -d $WEB/owncloud ]; then
			rm -r $WEB/owncloud
			echo "$(date +%d.%m.%y_%H:%M:%S): deleted old owncloud web folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi
	fi
	# enter link and display types to the application.cfg DSM linkl file
	if [ ! -z ${https} ]; then
		echo "$(date +%d.%m.%y_%H:%M:%S): https link selected" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		echo "protocol = https" >> ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg
		echo "port = 443" >> ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg
	else
		echo "$(date +%d.%m.%y_%H:%M:%S): http link selected" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		echo "protocol = http" >> ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg
		echo "port = 80" >> ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg
	fi

	if [ ! -z ${external} ]; then
		echo "$(date +%d.%m.%y_%H:%M:%S): External link selected" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		echo "type = popup" >> ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg
	else
		echo "$(date +%d.%m.%y_%H:%M:%S): Embedded link selected" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		echo "type = embedded" >> ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg
	fi

	###install new owncloud version###

	mv ${SYNOPKG_PKGDEST}/owncloud $WEB/
	echo "$(date +%d.%m.%y_%H:%M:%S): moved owncloud files to web folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log

	if [ -d /var/packages/owncloud ]; then
		#restore data folder
		if [ -d ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data ]; then
			mv ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data $WEB/owncloud
			rmdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration
			echo "$(date +%d.%m.%y_%H:%M:%S): copied data folder back into owncloud folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
			chmod -R 754 $WEB/owncloud/data
		fi

		#restore config folder
		if [ -d ${SYNOPKG_PKGDEST}/../owncloud_config_migration/config ]; then
			rm -r $WEB/owncloud/config
			mv ${SYNOPKG_PKGDEST}/../owncloud_config_migration/config $WEB/owncloud
			rmdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration
			echo "$(date +%d.%m.%y_%H:%M:%S): copied config folder back into owncloud folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi

		echo "$(date +%d.%m.%y_%H:%M:%S): delete old owncloud package files" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		rm -r /var/packages/owncloud

		if [ -d ${SYNOPKG_PKGDEST}/../owncloud ]; then
			rm -r ${SYNOPKG_PKGDEST}/../owncloud
			echo "$(date +%d.%m.%y_%H:%M:%S): delete old owncloud files" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi
	fi

	#create DSM link
	if [ -L /usr/syno/synoman/webman/3rdparty/oc_dsmlink ]; then
		rm /usr/syno/synoman/webman/3rdparty/oc_dsmlink
		echo "$(date +%d.%m.%y_%H:%M:%S): delete old DSM link" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	fi
	ln -s ${SYNOPKG_PKGDEST}/oc_dsmlink /usr/syno/synoman/webman/3rdparty/
	echo "$(date +%d.%m.%y_%H:%M:%S): created DSM link" >> ${SYNOPKG_PKGDEST}/owncloud_package.log

	#set folder permissions
	mkdir $WEB/owncloud/data

	chmod 770 -R $WEB/owncloud/data
	chmod 777 -R $WEB/owncloud/config

	chown -R nobody:nobody $WEB/owncloud/
	echo "$(date +%d.%m.%y_%H:%M:%S): folder permissions set" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	echo "$(date +%d.%m.%y_%H:%M:%S): ----installation finished----" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	exit 0
}

preuninst ()
{
	exit 0
}

postuninst ()
{
	#delete Web folder and DSM link
	rm -r $WEB/owncloud
	rm -r /usr/syno/synoman/webman/3rdparty/oc_dsmlink

	exit 0
}

preupgrade ()
{
	echo "$(date +%d.%m.%y_%H:%M:%S): ----update started----" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	if [ ! -d /var/packages/owncloud ]; then
		if [ -d $WEB/owncloud/data ]; then
			mkdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration
			mv $WEB/owncloud/data ${SYNOPKG_PKGDEST}/../owncloud_data_migration
			echo "$(date +%d.%m.%y_%H:%M:%S): copied data folder into backup folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi

		if [ -d $WEB/owncloud/config ]; then
			mkdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration
			mv $WEB/owncloud/config ${SYNOPKG_PKGDEST}/../owncloud_config_migration
			echo "$(date +%d.%m.%y_%H:%M:%S): copied config folder into backup folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
		fi
	fi
	exit 0
}

postupgrade ()
{
	#restore data folder
	if [ -d ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data ]; then
		mv ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data $WEB/owncloud
		rmdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration
		echo "$(date +%d.%m.%y_%H:%M:%S): copied data folder back into owncloud folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	fi

	#restore config folder
	if [ -d ${SYNOPKG_PKGDEST}/../owncloud_config_migration/config ]; then
		rm -r $WEB/owncloud/config
		mv ${SYNOPKG_PKGDEST}/../owncloud_config_migration/config $WEB/owncloud
		rmdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration
		echo "$(date +%d.%m.%y_%H:%M:%S): copied config folder back into owncloud folder" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	fi

	chmod -R 770 $WEB/owncloud/data
	chmod -R 777 $WEB/owncloud/config

	chown -R nobody:nobody $WEB/owncloud/

	echo "$(date +%d.%m.%y_%H:%M:%S): folder permissions set" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	echo "$(date +%d.%m.%y_%H:%M:%S): updated to version ${SYNOPKG_PKGVER}" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	echo "$(date +%d.%m.%y_%H:%M:%S): ----update finished----" >> ${SYNOPKG_PKGDEST}/owncloud_package.log
	exit 0
}

I made it =)

So again the guide to stay out of trouble:

  • Don’t update via Package center update button!
  • Backup your owncloud files and Databases!
  • Install my new package
  1. Download the new package from my dropbox folder Edit: Or from the repo: In DSM open Package Center -> Community and install my new package (be sure it’s not the one from synocommunity). Even if there is an update button at your ownCloud package, DO NOT PRESS IT! – You can skip point 2. now.
  2. In DSM go to the Package Center->Manual Install->select the downloaded package
  3. Install it to the same volume the old package is installed to.
  4. Any old ownCloud version is transferred to the new one.  All old package files will be deleted (which is basically deleting the files to show the old package in package center)
  5. Access ownCloud as before via http(s)://your-nas-ip/owncloud
  6. You’re Welcome ;)

You have to do this only once, further updates should work like before with one press of a button.

If you haven’t installed owncloud before you are free to choose an install volume.

Please tell me if it works for you. I do my best but I am not responsible for any data you lose or any damage this might cause.

direct link:

ownCloud5.0.9-026.spk [15.5MB]

Wanna see the script?

installer.sh:

<br />#!/bin/sh<br /><br />#--------ownCloud installer script<br />#--------package maintained at eg-blog.de<br />WEB=/var/services/web<br /><br />preinst ()<br />{<br /><%%KEEPWHITESPACE%%>	exit 0<br />}<br /><br />postinst ()<br />{<br /><%%KEEPWHITESPACE%%>	echo "$(date +%d.%m.%y_%H:%M:%S): ----installation started----" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><br /><%%KEEPWHITESPACE%%>	if [ -d $WEB/owncloud/data ]; then<br /><%%KEEPWHITESPACE%%>		mkdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration<br /><%%KEEPWHITESPACE%%>		mv $WEB/owncloud/data ${SYNOPKG_PKGDEST}/../owncloud_data_migration<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): copied old data folder into backup folder" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	if [ -d $WEB/owncloud/config ]; then<br /><%%KEEPWHITESPACE%%>		mkdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration<br /><%%KEEPWHITESPACE%%>		mv $WEB/owncloud/config ${SYNOPKG_PKGDEST}/../owncloud_config_migration<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): copied old config folder into backup folder" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	# delete old owncloud installation<br /><%%KEEPWHITESPACE%%>	if [ -d $WEB/owncloud ]; then<br /><%%KEEPWHITESPACE%%>		rm -r $WEB/owncloud<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): deleted old owncloud web folder" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	mv ${SYNOPKG_PKGDEST}/owncloud $WEB/<br /><%%KEEPWHITESPACE%%>	echo "$(date +%d.%m.%y_%H:%M:%S): copied owncloud files to web folder" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><br /><%%KEEPWHITESPACE%%>	#restore data folder<br /><%%KEEPWHITESPACE%%>	if [ -d ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data ]; then<br /><%%KEEPWHITESPACE%%>		mv ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data $WEB/owncloud<br /><%%KEEPWHITESPACE%%>		rmdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): copied data folder back into owncloud folder" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	chmod -R 754 $WEB/owncloud/data<br /><br /><%%KEEPWHITESPACE%%>	#restore config folder<br /><%%KEEPWHITESPACE%%>	if [ -d ${SYNOPKG_PKGDEST}/../owncloud_config_migration/config ]; then<br /><%%KEEPWHITESPACE%%>		rm -r $WEB/owncloud/config<br /><%%KEEPWHITESPACE%%>		mv ${SYNOPKG_PKGDEST}/../owncloud_config_migration/config $WEB/owncloud<br /><%%KEEPWHITESPACE%%>		rmdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): copied config folder back into owncloud folder" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	# enter link and display types to the application.cfg DSM linkl file<br /><%%KEEPWHITESPACE%%>	if [ ! -z ${https} ]; then<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): https link selected" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>		echo "protocol = https" &gt;&gt; ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg<br /><%%KEEPWHITESPACE%%>		echo "port = 443" &gt;&gt; ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg<br /><%%KEEPWHITESPACE%%>	else<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): http link selected" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>		echo "protocol = http" &gt;&gt; ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg<br /><%%KEEPWHITESPACE%%>		echo "port = 80" &gt;&gt; ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	if [ ! -z ${external} ]; then<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): External link selected" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>		echo "type = popup" &gt;&gt; ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg<br /><%%KEEPWHITESPACE%%>	else<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): Embedded link selected" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>		echo "type = embedded" &gt;&gt; ${SYNOPKG_PKGDEST}/oc_dsmlink/application.cfg<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	#create DSM link<br /><%%KEEPWHITESPACE%%>	if [ -L /usr/syno/synoman/webman/3rdparty/oc_dsmlink ]; then<br /><%%KEEPWHITESPACE%%>		rm /usr/syno/synoman/webman/3rdparty/oc_dsmlink<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): delete old DSM link" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><%%KEEPWHITESPACE%%>	ln -s ${SYNOPKG_PKGDEST}/oc_dsmlink /usr/syno/synoman/webman/3rdparty/<br /><%%KEEPWHITESPACE%%>	echo "$(date +%d.%m.%y_%H:%M:%S): created DSM link" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><br /><%%KEEPWHITESPACE%%>	#set folder permissions<br /><%%KEEPWHITESPACE%%>	mkdir $WEB/owncloud/data<br /><br /><%%KEEPWHITESPACE%%>	chmod 770 -R $WEB/owncloud/data<br /><%%KEEPWHITESPACE%%>	chmod 777 -R $WEB/owncloud/config<br /><br /><%%KEEPWHITESPACE%%>	chown -R nobody:nobody $WEB/owncloud/<br /><%%KEEPWHITESPACE%%>	echo "$(date +%d.%m.%y_%H:%M:%S): folder permissions set" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><br /><%%KEEPWHITESPACE%%>	#delete old owncloud package<br /><%%KEEPWHITESPACE%%>	if [ -d /var/packages/owncloud ]; then<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): delete old owncloud package files" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>		rm -r /var/packages/owncloud<br /><%%KEEPWHITESPACE%%>	fi<br /><%%KEEPWHITESPACE%%>	if [ -d ${SYNOPKG_PKGDEST}/../owncloud ]; then<br /><%%KEEPWHITESPACE%%>		rm -r ${SYNOPKG_PKGDEST}/../owncloud<br /><%%KEEPWHITESPACE%%>		echo "$(date +%d.%m.%y_%H:%M:%S): delete old owncloud files" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	fi<br /><br /><%%KEEPWHITESPACE%%>	echo "$(date +%d.%m.%y_%H:%M:%S): ----installation finished----" &gt;&gt; ${SYNOPKG_PKGDEST}/owncloud_package.log<br /><%%KEEPWHITESPACE%%>	exit 0<br />}<br /><br />preuninst ()<br />{<br /><%%KEEPWHITESPACE%%>	exit 0<br />}<br /><br />postuninst ()<br />{<br /><%%KEEPWHITESPACE%%>	rm -r $WEB/owncloud<br /><%%KEEPWHITESPACE%%>	rm -r /usr/syno/synoman/webman/3rdparty/oc_dsmlink<br /><br /><%%KEEPWHITESPACE%%>	exit 0<br />}<br /><br />preupgrade ()<br />{<br /><%%KEEPWHITESPACE%%>	exit 0<br />}<br /><br />postupgrade ()<br />{<br /><%%KEEPWHITESPACE%%>	exit 0<br />}<br />

I’m back from my north west US trip.
I had a great time there, Chicago is my new favorite city. Unfortunately we missed our flight back to Germany (who could have expected traffic jams in NYC…), so you had to wait one more day.
But now the new package is out and online…
I have got time to read all your comments tomorrow, this package contains no changes but ownCloud itself.
Greetings from now also quite warm Düsseldorf, Eric.

Another week another package…

I have added to option to display owncloud inside an iframe again. You can select the link Type during install.

extern opens a new browser Tab

embedded opens ownCloud in an iframe window inside DSM

 

Eric

Hi there,

again a quick update with a lot of ownCloud internal fixes.

Have a nice Sunday, Eric

Doropbox is already up to date: https://www.dropbox.com/sh/4i5mjlhlnoe1qg4/B-SLEOoZH2

 

A new package arrived again with a lot of fixes…

Dropbox is already updated, repo will follow soon.

Have a nice Weekend, Eric

The 5.0.3 fixes a few bugs

If you had problems updating from 4.5.x this update should fix them.

Have a nice weekend, Eric

Finally ;)

ownCloud 5 is out and updating should be no big deal. Simply hit the update button, follow the usual instructions and install ownCloud.

After the installation is finished browse to your ownCloud page (click the DSM link) and wait for the update to complete (this takes another few seconds…)

5.0.0_updateYou will be redirected to the login page afterwards.

It is already online in my Dropbox Folder

https://www.dropbox.com/sh/4i5mjlhlnoe1qg4/B-SLEOoZH2

The repo will be online soon.

___________________________________

Now: Fixing Subsonic package again =(…

Nothing special here just the an usual ownCloud update…