-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
make clean-kssh
to actually delete all config files when the se…
…rvice is stopped (#96)
- Loading branch information
Showing
5 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
# chown as root | ||
chown -R keybase:keybase /mnt | ||
|
||
# Run everything else as the keybase user | ||
sudo -i -u keybase bash << EOF | ||
export "FORCE_WRITE=$FORCE_WRITE" | ||
export "KEYBASE_USERNAME=$KEYBASE_USERNAME" | ||
export "KEYBASE_PAPERKEY=$KEYBASE_PAPERKEY" | ||
nohup bash -c "KEYBASE_RUN_MODE=prod kbfsfuse /keybase | grep -v 'ERROR Mounting the filesystem failed' &" | ||
sleep ${KEYBASE_TIMEOUT:-5} | ||
keybase oneshot | ||
bin/keybaseca --wipe-all-configs | ||
sleep ${KEYBASE_TIMEOUT:-5} | ||
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters