Update 'install.sh'
Adding ssh key files check
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user