eg-blog

Feed Rss

ownCloud 3.0.3 Synology package

05.13.2012, Allgemein, Download / Release Notes, ownCloud on Synology DS, by .

First of all: Sorry, I uploaded a wrong version of ownCloud to the community package hub yesterday. This version will not work properly! I have already uploaded a new version, which will be available soon is available now. You can also install the new version manually from the link below.

What is new?

Beside the new version of ownCloud itself, I have updated the script a little bit, so your ownCloud data and config folder will survive further updates.

How can I install The package?

You can either download the package from the link below and install it manually or you add

http://update.10trum.de/packageupdate/getpackages.php

to your package sources.

Both methods are described in the Subsonic installation guide.

How can I update?

There are two folders („data“ and „config“) that need to be saved. They are both in the web/owncloud folder. You have to copy them to a place out of the owncloud folder, install the new package and copy them back.

1. With windows explorer go to: \\Your.NAS.IP.Adress\web\owncloud\ with mac goto smb://Your.NAS.IP.Adress/web/owncloud, the linux guys will know what to do ;).

2. If there is a error like „you don’t have the permission bla bla…“ you have to access your Diskstation via ssh (e.g. with putty) and type:

cd /volumeX/web/owncloud
chmod 777 ./data
chmod 777 ./config

X is the volume number your web folder is stored.

Now try to copy them again.

3. Uninstall the old ownCloud version and install the new one (3.0.3-02).

4. Restore the data and config folders.

You have to do this only once. For further updates I have scripted a backup routine.

If you have any questions or encounter any issues, let me know. Now have fun with the package:

ownCloud3.0.3-02.spk (3,2MB)

Scripts:

preinst:

#!/bin/sh

exit 0

postinst:

#!/bin/sh

WEB=`cat /usr/syno/etc/smb.conf | sed -r '/\/web$/!d;s/^.*path=(\/volume[0-9]{1,3}\/web).*$/\1/'`

mv ${SYNOPKG_PKGDEST}/owncloud $WEB/
ln -s ${SYNOPKG_PKGDEST}/oc_dsmlink /usr/syno/synoman/webman/3rdparty/

mkdir $WEB/owncloud/data

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

chown -R nobody:nobody $WEB/owncloud/

exit 0

preupgrade:

#!/bin/sh

#--------owncloud preupgrade script
#--------package maintained at eg-blog.de

WEB=`cat /usr/syno/etc/smb.conf | sed -r '/\/web$/!d;s/^.*path=(\/volume[0-9]{1,3}\/web).*$/\1/'`

if [ -d $WEB/owncloud/data ]; then
	mkdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration
	mv $WEB/owncloud/data ${SYNOPKG_PKGDEST}/../owncloud_data_migration
fi

if [ -d $WEB/owncloud/config ]; then
	mkdir ${SYNOPKG_PKGDEST}/../owncloud_config_migration
	mv $WEB/owncloud/config ${SYNOPKG_PKGDEST}/../owncloud_config_migration
fi

exit 0

postupgrade:

#!/bin/sh

#--------owncloud postupgrade script
#--------package maintained at eg-blog.de

WEB=`cat /usr/syno/etc/smb.conf | sed -r '/\/web$/!d;s/^.*path=(\/volume[0-9]{1,3}\/web).*$/\1/'`

if [ -d ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data ]; then
	mv ${SYNOPKG_PKGDEST}/../owncloud_data_migration/data $WEB/owncloud
	rmdir ${SYNOPKG_PKGDEST}/../owncloud_data_migration
fi

chmod 754 $WEB/owncloud/data

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
fi

chmod 777 -R $WEB/owncloud/config

chown -R nobody:nobody $WEB/owncloud/

exit 0

preuninst:

#!/bin/sh

exit 0

postuninst:

#!/bin/sh
WEB=`cat /usr/syno/etc/smb.conf | sed -r '/\/web$/!d;s/^.*path=(\/volume[0-9]{1,3}\/web).*$/\1/'`

rm -r $WEB/owncloud
rm -r /usr/syno/synoman/webman/3rdparty/oc_dsmlink

exit 0

start-stop-status:

#!/bin/sh

case $1 in
	start)
		exit 0
	;;
	stop)
		exit 0
	;;
	status)
		exit 0
	;;
	log)
		echo "Please browse to yourhostname/owncloud/index.php to finish installation.">/tmp/owncloud.log
		echo "/tmp/owncloud.log";
		exit 0
	;;
esac

7 Responses to ownCloud 3.0.3 Synology package

  1. Pingback: ownCloud 3 Synology package | eg-blog

  2. 2012-05-17 at 13:08 Michael

    Servus,

    vielen Dank für deine Packages – laufen wunderbar, auch das Update, das ich gerade auf 3.0.3 durchgeführt habe.

    Wird es auch von deiner Seite ein Update auf Version 4.0 geben? Wäre super! Weist du schon etwas genaueres, wann ownCloud 4 erscheinen wird, sollte doch eigentlich noch im April geschehen sein.

    Michael

    Antworten
  3. 2012-05-17 at 18:11 Michael

    Prima, danke bin schon gespannt…

    Antworten
  4. 2012-05-24 at 15:07 gothax

    thx for your package !
    I receive the error :
    [Error message: unable to establish a connection] [Native code: 0] MDB2 Error: connect failed: _doConnect: [Error message: unable to establish a connection] [Native code: 0]

    I check : /data and /config are both 777
    I try manualy (from your last spk ;)) and from the package center. The same error 🙁

    Can you help me ?

    Thx 😉

    Antworten
  5. 2012-05-24 at 18:46 gothax

    I finally found the error!
    (I forgot to tell you it was a reinstallation)
    Before using the same name for the administrator user during a reinstallation, you need to delete on MySQL database the two users : oc_xxx_admin_xxx

    Thank you not consider my previous comment or maybe it can help other users!

    Best regards

    Antworten

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.