viwib: update to 19.07.8 and automatic password store usage
This commit is contained in:
parent
f691230af5
commit
13283db2c0
2 changed files with 4 additions and 5 deletions
|
@ -13,7 +13,7 @@ set -x
|
|||
viwib_ip=$1; shift
|
||||
|
||||
# openwrt
|
||||
version=19.07.7
|
||||
version=19.07.8
|
||||
filename=openwrt-${version}-ramips-mt76x8-gl-mt300n-v2-squashfs-sysupgrade.bin
|
||||
|
||||
# don't care about other/old known_host entries
|
||||
|
|
|
@ -20,10 +20,6 @@ viwib_hostname=viwib${id}
|
|||
|
||||
root_password=$(pwgen -1 32)
|
||||
|
||||
# Save for sending to user
|
||||
# FIXME: future make this more easy / better to transfer
|
||||
echo $root_password > ${viwib_hostname}.rootpw
|
||||
|
||||
cat <<EOF | ssh -t "root@${viwib_ip}"
|
||||
# Remove temporary IP
|
||||
|
||||
|
@ -40,4 +36,7 @@ printf "${root_password}\n${root_password}\n" | passwd
|
|||
reboot
|
||||
EOF
|
||||
|
||||
printf "${root_password}\n${root_password}\n" | pass insert viwib/viwib${id}
|
||||
pass git push
|
||||
|
||||
echo "Submit to user the root password = ${root_password}"
|
||||
|
|
Loading…
Reference in a new issue