Commit c6c35822 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix a path in 50ChangePassword script

50ChangePassword was looking in commondir instead of scriptsdir for
snf-passtohash.py
parent 27b1de98
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment