small fix

This commit is contained in:
teldra 2021-03-13 12:12:28 +01:00
parent 63b754852e
commit 187fcf7643

View File

@ -65,18 +65,16 @@ sed -i "/FONT=/s/^#//g" "${dest}/etc/rc.conf"
if [[ ! ${cfg[fde_key_store]} == "none" ]]; then
if [[ "${cfg[diskpw]}" == "oem" ]]; then
echo "read -p \"Do you want to change Passwords? y/n \" answer" > "${dest}"/etc/runit/core-services/99-changepwdisk.sh
echo "read -p \"Change PW for disk: y/n \" answer" > "${dest}"/etc/runit/core-services/99-changepwdisk.sh
echo "if [ \"\${answer}\" = \"y\" ]; then" >> "${dest}"/etc/runit/core-services/99-changepwdisk.sh
echo "echo \"Change PW for disk:\"" >> "${dest}"/etc/runit/core-services/99-changepwdisk.sh
echo "cryptsetup luksChangeKey /dev/disk/by-uuid/${cfg[partuuid]}" >> "${dest}"/etc/runit/core-services/99-changepwdisk.sh
echo "rm -rf /etc/runit/core-services/99-changepwdisk.sh" >> "${dest}"/etc/runit/core-services/99-changepwdisk.sh
echo "fi" >> "${dest}"/etc/runit/core-services/99-changepwdisk.sh
fi
if [[ "${users[pw1]}" == "oem" ]]; then
echo "read -p \"Do you want to change Passwords? y/n \" answer" > "${dest}"/etc/runit/core-services/99-changepwuser.sh
echo "read -p \"Change PW for ${users[name1]}? y/n \" answer" > "${dest}"/etc/runit/core-services/99-changepwuser.sh
echo "if [ \"\${answer}\" = \"y\" ]; then" >> "${dest}"/etc/runit/core-services/99-changepwuser.sh
echo "echo \"Change PW for ${users[name1]}?\"" >> "${dest}"/etc/runit/core-services/99-changepwuser.sh
echo "passwd ${users[name1]}" >> "${dest}"/etc/runit/core-services/99-changepwuser.sh
echo "rm -rf /etc/runit/core-services/99-changepwuser.sh" >> "${dest}"/etc/runit/core-services/99-changepwuser.sh
echo "fi" >> "${dest}"/etc/runit/core-services/99-changepwuser.sh