tox upgrades

This commit is contained in:
Bob Mottram 2018-04-20 20:44:57 +01:00
parent 1308cf69ac
commit ae6f5e1c37
1 changed files with 6 additions and 2 deletions

View File

@ -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