Fix a path in 50ChangePassword script
authorNikos Skalkotos <skalkoto@grnet.gr>
Thu, 6 Oct 2011 11:35:28 +0000 (14:35 +0300)
committerNikos Skalkotos <skalkoto@grnet.gr>
Thu, 6 Oct 2011 11:35:28 +0000 (14:35 +0300)
50ChangePassword was looking in commondir instead of scriptsdir for
snf-passtohash.py

snf-image-helper/tasks/50ChangePassword.in
snf-image-helper/tasks/Makefile.am

index 55abea7..4885a23 100644 (file)
@@ -31,7 +31,7 @@ linux_password() {
     local target=$1
     local password=$2
 
-    local hash=$(@commondir@/snf-passtohash.py $password)
+    local hash=$(@scriptsdir@/snf-passtohash.py $password)
     if [ ! -e ${target}/etc/shadow ]; then
        log_error "No /etc/shadow found!" 
     fi
index b1952e9..55172e8 100644 (file)
@@ -16,7 +16,9 @@ edit = sed \
           -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
           -e 's|@localstatedir[@]|$(localstatedir)|g' \
           -e 's|@datarootdir[@]|$(datarootdir)|g' \
-          -e 's|@commondir[@]|$(commondir)|g'
+          -e 's|@commondir[@]|$(commondir)|g' \
+          -e 's|@scriptsdir[@]|$(scriptsdir)|g'
+
 
 %:%.in Makefile
        rm -f $@ $@.tmp