mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
4.0.0.1
This commit is contained in:
parent
41ecce4b5a
commit
bc635e14e9
@ -167,11 +167,19 @@ function upgrade_to_4 {
|
||||
MESSAGE="Migrating Previous Configuration"
|
||||
echo_info
|
||||
|
||||
CURRENTUSER=$(whoami)
|
||||
MESSAGE="Transferring SSH keys"
|
||||
echo_stat
|
||||
sudo cp $HOME/.ssh/id_rsa /etc/gravity-sync/gravity-sync.rsa
|
||||
sudo cp $HOME/.ssh/id_rsa.pub /etc/gravity-sync/gravity-sync.rsa.pub
|
||||
error_validate
|
||||
|
||||
MESSAGE="Setting SSH key owner"
|
||||
echo_stat
|
||||
sudo chown ${CURRENTUSER}:${CURRENTUSER} /etc/gravity-sync/gravity-sync.rsa
|
||||
sudo chown ${CURRENTUSER}:${CURRENTUSER} /etc/gravity-sync/gravity-sync.rsa.pub
|
||||
error_validate
|
||||
|
||||
REMOTE_HOST=''
|
||||
REMOTE_USER=''
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user