浏览代码

Use env varible for domain name

Shorten scripts.
DricomDragon 4 年之前
父节点
当前提交
84e3b304e7
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 2 2
      Install/Templates/bin/dccheck
  2. 1 1
      Install/Templates/bin/dcpull
  3. 1 1
      Install/Templates/bin/dcpush

+ 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."