Skip to content
Snippets Groups Projects
Unverified Commit 8f714dfa authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

sshfs reconnect on error

parent 1a29bc11
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -9,7 +9,7 @@ all: ...@@ -9,7 +9,7 @@ all:
- cd generator/; npm install; cd .. - cd generator/; npm install; cd ..
- node generator/index.js --contentdir . --staticdir static --themedir generator/theme --builddir build --noserver - node generator/index.js --contentdir . --staticdir static --themedir generator/theme --builddir build --noserver
- mkdir -p upload - mkdir -p upload
- echo $LFTP_PASSWORD | sshfs -o password_stdin -p 2121 ok1kvk.cz-www-nove@krios.blueboard.cz:/ upload - echo $LFTP_PASSWORD | sshfs -o password_stdin,reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 -p 2121 ok1kvk.cz-www-nove@krios.blueboard.cz:/ upload
- /usr/bin/time -f "Upload took %e" -- node generator/sftp-sync.js --sourcedir build --server localdirectory --targetdir upload --port 2121 - /usr/bin/time -f "Upload took %e" -- node generator/sftp-sync.js --sourcedir build --server localdirectory --targetdir upload --port 2121
- fusermount -u upload - fusermount -u upload
- rm -rf upload - rm -rf upload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment