fixed buggy bugs

This commit is contained in:
Zehka
2021-11-07 18:31:48 +01:00
parent 98f31f6965
commit 3f59acbfb0
2 changed files with 2 additions and 39 deletions

View File

@ -49,14 +49,14 @@ rm -f ${temp_outfile}
for appendix in open close door
do
action="$appendix"
if [ "$action" -eq "door" ]
if [ "$action" = "door" ]
then
action=""
fi
export action
outfile="${dest}/authorized_keys.${appendix}"
cat ${tmp_outfile} |envsubst > ${outfile}
cat ${temp_outfile} |envsubst > ${outfile}
# Oben
install -d -o ${appendix} -g nogroup -m 0700 /var/lib/foodoor/${appendix}/.ssh