init.sh now works

This commit is contained in:
grez911
2017-02-05 14:13:10 +03:00
parent b3b392b354
commit 317d4ba874
5 changed files with 103 additions and 13 deletions

View File

@@ -20,8 +20,7 @@ operation=$1
domain=$2
if [ "${operation}" = "add" ]; then
# password=$(apg -MCLN -m 12 -a 1 -n 1)
password="123"
password=$(apg -MCLN -m 12 -a 1 -n 1)
hash=$(echo -n $password | sha256sum | head -c 64)
mkdir -p $lists_path/$domain
echo $domain:$hash >> $lists_path/passwords.txt