From ae6f5e1c375f333fdd3dfb501ea44c8e8ceef7f4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 20 Apr 2018 20:44:57 +0100 Subject: [PATCH] tox upgrades --- src/freedombone-app-tox | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/freedombone-app-tox b/src/freedombone-app-tox index c8c1791a..1f7adfa1 100755 --- a/src/freedombone-app-tox +++ b/src/freedombone-app-tox @@ -184,8 +184,12 @@ function upgrade_tox { if [[ $(commit_has_changed "$INSTALL_DIR/toxcore" "toxcore commit" "$TOXCORE_COMMIT") == "1" ]]; then cd "$INSTALL_DIR/toxcore" || exit 53683563 sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' "$rootdir/etc/systemd/system/tox-bootstrapd.service" - autoreconf -i - ./configure --enable-daemon + ./autogen.sh + if [ ! -d "$INSTALL_DIR/toxcore/_build" ]; then + mkdir "$INSTALL_DIR/toxcore/_build" + fi + cd "$INSTALL_DIR/toxcore/_build" || return + cmake .. make make install systemctl daemon-reload