move pwgen to util.sh
This commit is contained in:
parent
cd4634aef5
commit
50b09826f8
2 changed files with 4 additions and 6 deletions
|
@ -358,6 +358,10 @@ load_pacman_conf(){
|
|||
return 0
|
||||
}
|
||||
|
||||
gen_pw(){
|
||||
echo $(perl -e 'print crypt($ARGV[0], "password")' ${password})
|
||||
}
|
||||
|
||||
load_sets(){
|
||||
local prof temp
|
||||
for item in $(ls ${profiledir}/*.set); do
|
||||
|
|
|
@ -93,14 +93,8 @@ if [ -e "/usr/bin/gnome-keyring-daemon" ] ; then
|
|||
setcap cap_ipc_lock=ep /usr/bin/gnome-keyring-daemon &> /dev/null
|
||||
fi
|
||||
|
||||
gen_pw(){
|
||||
echo $(perl -e 'print crypt($ARGV[0], "password")' ${password})
|
||||
}
|
||||
|
||||
useradd -m -g users -G ${addgroups} -p $(gen_pw) ${username}
|
||||
|
||||
|
||||
|
||||
# configurate pacman
|
||||
#pacman-key --init
|
||||
#pacman-key --populate archlinux manjaro
|
||||
|
|
Loading…
Reference in a new issue