fix: set correct perms on files

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-06-19 22:01:12 -04:00
1 parent fb4a232537
commit b9cc89e4d2
1 file changed
+3
+3
View File
@@ -55,6 +55,7 @@ endif
mkdir -p /root/.ssh mkdir -p /root/.ssh
rm -f /root/.ssh/dokku_test_rsa* rm -f /root/.ssh/dokku_test_rsa*
echo -e "y\n" | ssh-keygen -f /root/.ssh/dokku_test_rsa -t rsa -N '' echo -e "y\n" | ssh-keygen -f /root/.ssh/dokku_test_rsa -t rsa -N ''
chmod 700 /root/.ssh
chmod 600 /root/.ssh/dokku_test_rsa chmod 600 /root/.ssh/dokku_test_rsa
chmod 644 /root/.ssh/dokku_test_rsa.pub chmod 644 /root/.ssh/dokku_test_rsa.pub
@@ -82,6 +83,8 @@ endif
echo "" > /home/dokku/.ssh/authorized_keys echo "" > /home/dokku/.ssh/authorized_keys
sudo sshcommand acl-remove dokku test sudo sshcommand acl-remove dokku test
cat /root/.ssh/dokku_test_rsa.pub | sudo sshcommand acl-add dokku test cat /root/.ssh/dokku_test_rsa.pub | sudo sshcommand acl-add dokku test
chmod 700 /home/dokku/.ssh
chmod 600 /home/dokku/.ssh/authorized_keys
ifeq ($(shell grep dokku.me /home/dokku/VHOST 2>/dev/null),) ifeq ($(shell grep dokku.me /home/dokku/VHOST 2>/dev/null),)
@echo "-----> Setting default VHOST to dokku.me..." @echo "-----> Setting default VHOST to dokku.me..."