Automatisches foo
This commit is contained in:
parent
3f59acbfb0
commit
a104fbf913
@ -59,17 +59,25 @@ do
|
|||||||
cat ${temp_outfile} |envsubst > ${outfile}
|
cat ${temp_outfile} |envsubst > ${outfile}
|
||||||
|
|
||||||
# Oben
|
# Oben
|
||||||
|
if [ "$(hostname)" = "foodoor" ]; then
|
||||||
install -d -o ${appendix} -g nogroup -m 0700 /var/lib/foodoor/${appendix}/.ssh
|
install -d -o ${appendix} -g nogroup -m 0700 /var/lib/foodoor/${appendix}/.ssh
|
||||||
install -b -S .last -o ${appendix} -g nogroup -m 0600 ${outfile} /var/lib/foodoor/${appendix}/.ssh/authorized_keys
|
install -b -S .last -o ${appendix} -g nogroup -m 0600 ${outfile} /var/lib/foodoor/${appendix}/.ssh/authorized_keys
|
||||||
|
fi
|
||||||
|
|
||||||
# Unten
|
# Unten
|
||||||
#if [ "${action}" = "open" ]; then
|
if [ "$(hostname)" = "kellertuer" ]; then
|
||||||
# owner="unlock"
|
if [ "${action}" = "open" ]; then
|
||||||
#elif [ "${action}" = "close" ]; then
|
owner="unlock"
|
||||||
# owner="lock"
|
elif [ "${action}" = "close" ]; then
|
||||||
#fi
|
owner="lock"
|
||||||
|
fi
|
||||||
|
install -d -o ${owner} -g nogroup -m 0700 /var/lib/foodoor/${action}/.ssh
|
||||||
|
install -b -S .last -o ${owner} -g nogroup -m 0600 ${outfile} /var/lib/foodoor/${action}/.ssh/authorized_keys
|
||||||
|
if [ "${appendix}" = "door" ]; then
|
||||||
|
install -d -o ${appendix} -g nogroup -m 0700 /var/lib/foodoor/${appendix}/.ssh
|
||||||
|
install -b -S .last -o ${appendix} -g nogroup -m 0600 ${outfile} /var/lib/foodoor/${appendix}/.ssh/authorized_keys
|
||||||
|
fi
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
#install -d -o ${owner} -g nogroup -m 0700 /var/lib/foodoor/${action}/.ssh
|
|
||||||
#install -b -S .last -o ${owner} -g nogroup -m 0600 ${outfile} /var/lib/foodoor/${action}/.ssh/authorized_keys
|
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user