Skip to content
This repository was archived by the owner on Nov 8, 2021. It is now read-only.

Commit 208bde8

Browse files
committed
fix #69
1 parent e9e885e commit 208bde8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,13 @@ fi
119119
sed -i 's:#AuthorizedKeysCommand none:AuthorizedKeysCommand /opt/authorized_keys_command.sh:g' /etc/ssh/sshd_config
120120
sed -i 's:#AuthorizedKeysCommandUser nobody:AuthorizedKeysCommandUser nobody:g' /etc/ssh/sshd_config
121121

122-
echo "*/10 * * * * root /opt/import_users.sh" > /etc/cron.d/import_users
122+
cat > /etc/cron.d/import_users << EOF
123+
SHELL=/bin/bash
124+
PATH=/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/aws/bin
125+
MAILTO=root
126+
HOME=/
127+
*/10 * * * * root /opt/import_users.sh
128+
EOF
123129
chmod 0644 /etc/cron.d/import_users
124130

125131
/opt/import_users.sh

0 commit comments

Comments
 (0)