Skip to content
Snippets Groups Projects
Commit d63b6062 authored by Bob Mottram's avatar Bob Mottram
Browse files

Ensure that permissions are set

parent 84f6d0b1
No related branches found
No related tags found
No related merge requests found
......@@ -1195,6 +1195,8 @@ function after_setup_has_finished {
regenerate_blocklist
chown -R www-data:www-data "$webadmin_install_dir"
systemctl reboot -i
}
......@@ -2265,6 +2267,7 @@ function update_enable_ssh {
mkdir "/home/$ADMIN_USERNAME/.ssh"
fi
echo "$ssh_public_key" > "/home/$ADMIN_USERNAME/.ssh/authorized_keys"
echo "" >> "/home/$ADMIN_USERNAME/.ssh/authorized_keys"
chown -R "$ADMIN_USERNAME":"$ADMIN_USERNAME" "/home/$ADMIN_USERNAME/.ssh"
iptables -A INPUT -p udp --dport "${SSH_PORT}" -j ACCEPT
iptables -A INPUT -p tcp --dport "${SSH_PORT}" -j ACCEPT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment