Update 'install.sh'

Adding ssh key files check
This commit is contained in:
Gyorgy Berenyi
2023-07-13 08:23:07 +00:00
parent 8b0fe68f8f
commit 3cb814f065

View File

@@ -102,6 +102,14 @@ discover_services() {
check_dirs_and_files() {
if [ ! -f "$HOME/.ssh/installer" ]; then
echo "No ssh key files found, exting";
exit;
else
chmod 0600 $HOME/.ssh/installer;
chmod 0600 $HOME/.ssh/installer.pub;
fi;
if [ ! -d "/etc/user/config" ]; then
$SUDO_CMD mkdir -p "/etc/user/config"
fi;