projects
/
koha.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 16733: Adjust koha-indexer
[koha.git]
/
debian
/
scripts
/
koha-reset-passwd
diff --git
a/debian/scripts/koha-reset-passwd
b/debian/scripts/koha-reset-passwd
index
fd4a60e
..
317e2bc
100755
(executable)
--- a/
debian/scripts/koha-reset-passwd
+++ b/
debian/scripts/koha-reset-passwd
@@
-19,12
+19,13
@@
set -e
set -e
-
-die() {
- echo "$@" 1>&2
+# include helper functions
+if [ -f "/usr/share/koha/bin/koha-functions.sh" ]; then
+ . "/usr/share/koha/bin/koha-functions.sh"
+else
+ echo "Error: /usr/share/koha/bin/koha-functions.sh not present." 1>&2
exit 1
exit 1
-}
-
+fi
pwdigest() {
echo -n "$1" |
pwdigest() {
echo -n "$1" |