Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. export STNODEFAULTFOLDER=1
  4. export STNOUPGRADE=1
  5. export HOME=/secure/sneak/sync
  6.  
  7. if [[ ! -d "$HOME" ]]; then
  8. echo "sync dir not mounted, exiting" > /dev/stderr
  9. sleep 10
  10. exit 1
  11. fi
  12.  
  13. exec chpst -u syncthing:syncthing syncthing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement