Public bug reported:

sudo ecryptfs-migrate-home -u zgantner

(where zgantner is my username) does not work for me.

I only see the usage information.

My workaround was to change

DO_ENCRYPT=
while true; do
       [ -z "$1" ] && break
       case "$1" in
               -u|--user)
                       DO_ENCRYPT=1
                       USER_NAME="$2"
                       shift 2
               ;;
               *)
                       usage
               ;;
       esac
done

into

DO_ENCRYPT=1
USER_NAME=zgantner
#while true; do
#       [ -z "$1" ] && break
#       case "$1" in
#               -u|--user)
#                       DO_ENCRYPT=1
#                       USER_NAME="$2"
#                       shift 2
#               ;;
#               *)
#                       usage
#               ;;
#       esac
#done


I am no shell scripting guru, so I am not sure what the code in the while loop 
actually does.
Could it be that it works nicely with bash, but not with dash?

ls -lh  /bin/sh

gives

lrwxrwxrwx 1 root root 4 Mar 29 20:53 /bin/sh -> dash

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ecryptfs-utils 96-0ubuntu3 [modified: usr/bin/ecryptfs-migrate-home]
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Mon May 21 19:08:22 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ecryptfs-utils
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ecryptfs-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1002386

Title:
  ecryptfs-migrate-home only shows usage information

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ecryptfs-utils/+bug/1002386/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to