pass
This commit is contained in:
parent
524be1ff49
commit
d5e423abe5
24
Readme.md
24
Readme.md
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
> git clone https://ilya_muhortov@bitbucket.org/med-logic/medicine-config.git
|
||||
|
||||
> chmod +x ~/medicine-config/bash_scripts/docker-install.sh ~/medicine-config/bash_scripts/install.sh ~/medicine-config/medicine/run.sh
|
||||
|
||||
|
||||
### Problems
|
||||
|
||||
|
|
@ -13,3 +15,25 @@
|
|||
> Git ignore rights
|
||||
|
||||
` > git config core.fileMode false`
|
||||
|
||||
|
||||
### Ключи
|
||||
|
||||
#### Добавление ключика на удаленный сервер (root)
|
||||
|
||||
ssh-copy-id -i ~/.ssh/medlogic_awx_rsa.pub -p 22 root@remote
|
||||
|
||||
|
||||
#### Добавление ключика на удаленный сервер (no root)
|
||||
|
||||
cat ~/.ssh/medlogic_awx_rsa.pub | ssh user@remote "sudo cat >> /root/.ssh/authorized_keys"
|
||||
|
||||
|
||||
### Настройка сервера
|
||||
> vim /etc/ssh/sshd_config
|
||||
|
||||
PermitRootLogin without-password
|
||||
PubkeyAuthentication yes
|
||||
|
||||
> service ssh restart
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
docker exec -i medicine-stack-postgres psql -U postgres -d medicine -f /files/backup.sql
|
||||
Loading…
Reference in New Issue