diff --git a/bin/setup_backup.sh b/bin/setup_backup.sh index 0a3560f..ee14815 100644 --- a/bin/setup_backup.sh +++ b/bin/setup_backup.sh @@ -1,6 +1,6 @@ #!/bin/bash -./setup_ssh_keys.sh +. bin/setup_ssh_keys.sh install_pkg cron diff --git a/bin/setup_node_exporter.sh b/bin/setup_node_exporter.sh index f557d98..0614ba3 100644 --- a/bin/setup_node_exporter.sh +++ b/bin/setup_node_exporter.sh @@ -13,7 +13,7 @@ if [[ -n "$RECEIVING_IP" && -n "$RECEIVING_USER" && -n "$RECEIVING_PORT" ]]; the install_pkg tmux tmux new-session -d -s node-exporter - tmux send-keys -t node-exporter "cd node_exporter-*.*-amd64 && ./node_exporter" C-m + tmux send-keys -t node-exporter "cd /root/node_exporter-*.*-amd64 && ./node_exporter" C-m get_ip # si l'url est pas set set l'url diff --git a/bin/setup_ssh_keys.sh b/bin/setup_ssh_keys.sh index d533bf4..21e28e1 100644 --- a/bin/setup_ssh_keys.sh +++ b/bin/setup_ssh_keys.sh @@ -7,5 +7,6 @@ read RECEIVING_USER echo -e "${PURPLE}${BOLD}Enter the receiving server port : ${RESET}" read RECEIVING_PORT +# si les ssh keys sont pas déjà set ssh-keygen ssh-copy-id -p ${RECEIVING_PORT} ${RECEIVING_USER}@${RECEIVING_IP} \ No newline at end of file