Skip to content

Commit

Permalink
Fix for issue Connection refused on Drobo FS #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopadilha committed Jan 3, 2015
1 parent b79f1b1 commit 00361e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dest/service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,21 @@ _fix_permissions() {
fi
done
if [[ ! -f /var/log/lastlog ]]; then touch /var/log/lastlog; fi
if [[ ! -f /etc/login.defs ]]; then touch /etc/login.defs; fi
chmod 4711 "${prog_dir}/libexec/ssh-keysign"
}

# create user/group sshd, if missing
_create_user() {
if [[ ! -f /etc/login.defs ]]; then touch /etc/login.defs; fi
if ! id -u sshd; then ${prog_dir}/libexec/useradd -r -M -d "${homedir}" -s /bin/false -g 99 -u 103 sshd; fi
}

start() {
set -u # exit on unset variable
set -e # exit on uncaught error code
set -x # enable script trace
_create_user
_fix_permissions
_create_user
"${daemon}"
}

Expand Down

0 comments on commit 00361e9

Please sign in to comment.