[DRE-commits] [diaspora-installer] 05/23: backup public
Praveen Arimbrathodiyil
praveen at moszumanska.debian.org
Wed Jan 25 21:57:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
praveen pushed a commit to branch master
in repository diaspora-installer.
commit 3acbf53a83ca43811e3594ff8c1ffef5b9d5f18a
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date: Tue Jan 24 23:11:45 2017 +0530
backup public
---
debian/preinst | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/preinst b/debian/preinst
index 96810a8..4d189dc 100755
--- a/debian/preinst
+++ b/debian/preinst
@@ -15,13 +15,14 @@ backup() {
cp -r ${diaspora_home}/config ${diaspora_home}-config
cp -r ${diaspora_home}/vendor/bundle ${diaspora_home}-vendor-bundle
cp -r ${diaspora_home}/.bundle ${diaspora_home}.bundle
- mv ${diaspora_home} ${diaspora_home}-backup.`openssl rand -hex 4`
+ backup_suffix=$(openssl rand -hex 4)
+ mv ${diaspora_home} ${diaspora_home}-backup.${backup-suffix}
mkdir ${diaspora_home}
mkdir ${diaspora_home}/vendor
mv ${diaspora_home}-config ${diaspora_home}/config
mv ${diaspora_home}-vendor-bundle ${diaspora_home}/vendor/bundle
mv ${diaspora_home}.bundle ${diaspora_home}/.bundle
- chown ${diaspora_user}: -R ${diaspora_home}
+ mv ${diaspora_home}-backup.${backup-suffix}/public ${diaspora_home}/public
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/diaspora-installer.git
More information about the Pkg-ruby-extras-commits
mailing list