Procházet zdrojové kódy

Use env varible for domain name

Shorten scripts.
DricomDragon před 4 roky
rodič
revize
84e3b304e7

+ 2 - 2
Install/Templates/bin/dccheck

@@ -1,7 +1,7 @@
 #!/usr/bin/fish
 echo "[dccheck] Detect differences between remote Jupyter Raspberry Pi and current computer."
 echo "[dccheck] Files to pull :"
-rsync -parv -n jovian-hersemeule.eu:~/Documents/ ~/Documents/ -e "ssh -p 7025"
+rsync -parv -n $JHE:~/Documents/ ~/Documents/ -e "ssh -p 7025"
 echo "[dccheck] Files to push :"
-rsync -parv -n ~/Documents/ jovian-hersemeule.eu:~/Documents/ -e "ssh -p 7025"
+rsync -parv -n ~/Documents/ $JHE:~/Documents/ -e "ssh -p 7025"
 echo "[dccheck] Check terminated (no file was transfered)"

+ 1 - 1
Install/Templates/bin/dcpull

@@ -1,4 +1,4 @@
 #!/usr/bin/fish
 echo "[dcpull] Trying pulling documents from remote Jupyter Raspberry Pi ..."
-rsync -parv jovian-hersemeule.eu:~/Documents/ ~/Documents/ -e "ssh -p 7025"
+rsync -parv $JHE:~/Documents/ ~/Documents/ -e "ssh -p 7025"
 echo "[dcpull] Pull terminated."

+ 1 - 1
Install/Templates/bin/dcpush

@@ -1,4 +1,4 @@
 #!/usr/bin/fish
 echo "[dcpush] Trying pushing documents to remote Jupyter Raspberry Pi ..."
-rsync -parv ~/Documents/ jovian-hersemeule.eu:~/Documents/ -e "ssh -p 7025"
+rsync -parv ~/Documents/ $JHE:~/Documents/ -e "ssh -p 7025"
 echo "[dcpush] Push terminated."