fix "/ssh/key.pub not existing"

This commit is contained in:
mercury
2023-04-23 12:54:35 +04:00
parent 3fd9eb9220
commit 5683100b07
2 changed files with 25 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
if [[ -f "/ssh/key.pub" && -s "/ssh/key.pub" ]]; then
exit 0;
else
exit 1;
fi