aboutsummaryrefslogtreecommitdiff
path: root/contrib/debian/bin/bitcoin-qt
blob: f2eac1b1abb3b0a8be15476970c1b848f08f1eca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

umask 077

basedir=~/.bitcoin
dbfile="$basedir/DB_CONFIG"
cfgfile="$basedir/bitcoin.conf"

[ -e "$basedir" ] || mkdir "$basedir"

# Bitcoin does not clean up DB log files by default
[ -e "$dbfile" ] || echo 'set_flags DB_LOG_AUTOREMOVE' > "$dbfile"

exec /usr/lib/bitcoin/bitcoin-qt "$@"