Merge lp:~lazypower/charms/precise/owncloud/lp1277577 into lp:charms/owncloud

Proposed by Charles Butler
Status: Merged
Merged at revision: 22
Proposed branch: lp:~lazypower/charms/precise/owncloud/lp1277577
Merge into: lp:charms/owncloud
Diff against target: 14 lines (+2/-2)
1 file modified
hooks/shared-fs-relation-changed (+2/-2)
To merge this branch: bzr merge lp:~lazypower/charms/precise/owncloud/lp1277577
Reviewer Review Type Date Requested Status
charmers Pending
Review via email: mp+205439@code.launchpad.net

Description of the change

Adds data backup to /mnt in the event of catastrophic failure during the NFS migration, and adds a proper ending path flag to prevent rsync from breaking the deployed component of owncloud.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'hooks/shared-fs-relation-changed'
2--- hooks/shared-fs-relation-changed 2014-02-04 20:29:15 +0000
3+++ hooks/shared-fs-relation-changed 2014-02-07 18:42:23 +0000
4@@ -44,8 +44,8 @@
5 # migrate data and symlink
6 migrate_data () {
7 if [ ! -L $docroot ]; then
8- rsync -az $docroot $local_mountpoint
9- rm -rf $docroot
10+ rsync -az $docroot/* $local_mountpoint
11+ mv $docroot /mnt/owncloud-backup
12 ln -s $local_mountpoint $docroot
13 fi
14 }

Subscribers

People subscribed via source and target branches

to status/vote changes: