[DRE-commits] [schleuder] 01/01: debian/schleuder.preinst: Really check for existing data first
Georg Faerber
georg-alioth-guest at moszumanska.debian.org
Tue Jul 18 11:46:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
georg-alioth-guest pushed a commit to branch master
in repository schleuder.
commit 8b4b85ef963b665de8d07870703ce39932aaf792
Author: Georg Faerber <georg at riseup.net>
Date: Tue Jul 18 13:11:54 2017 +0200
debian/schleuder.preinst: Really check for existing data first
Closes #867031
---
debian/schleuder.preinst | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/debian/schleuder.preinst b/debian/schleuder.preinst
index 26dbfc7..2d8d559 100644
--- a/debian/schleuder.preinst
+++ b/debian/schleuder.preinst
@@ -10,7 +10,7 @@ case "$1" in
# Handle existing data if upgrading from schleuder < 3.0
if dpkg --compare-versions "$2" lt 3.0; then
# Check for existing data first
- if [ -z "$(SCHLEUDER_DATA_DIR)" ]; then
+ if [ "$(ls $SCHLEUDER_DATA_DIR)" ]; then
mkdir -p $SCHLEUDER_BACKUP_DIR
mv $SCHLEUDER_DATA_DIR/* $SCHLEUDER_BACKUP_DIR/
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/schleuder.git
More information about the Pkg-ruby-extras-commits
mailing list