freedomboneeee/src/freedombone-upgrade

24 lines
415 B
Plaintext
Raw Normal View History

#!/bin/bash
FREEDOMBONE_REPO="https://github.com/bashrc/freedombone"
update-ca-certificates
if [ ! -d /root/freedombone ]; then
echo " git clone $FREEDOMBONE_REPO /root/freedombone"
fi
if [ -f /root/freedombone.cfg ]; then
cd /root/freedombone
git stash
git pull
make install
freedombone -c /root/freedombone.cfg
fi
echo '
' | reset-tripwire
# deliberately there is no 'exit 0' here