Skip to content

Commit 2693b04

Browse files
committed
Fix SSH config script
1 parent d1fdb7e commit 2693b04

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ssh/setup_ssh.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
66

77
echo "Configuring SSH."
88

9-
chmod 700 "${SCRIPT_DIR}"
10-
chmod 600 "${SCRIPT_DIR}/authorized_keys"
11-
if [ -f "${SCRIPT_DIR}/config" ]; then
12-
chmod 600 "${SCRIPT_DIR}/config"
9+
chmod 700 "${CONF_DIR}"
10+
chmod 600 "${CONF_DIR}/authorized_keys"
11+
if [ -f "${CONF_DIR}/config" ]; then
12+
chmod 600 "${CONF_DIR}/config"
1313
fi
1414

1515
if [ -L "${SSH_DIR}" ]; then

0 commit comments

Comments
 (0)