fixed timer update

This commit is contained in:
2026-05-04 09:56:36 -04:00
parent ad03032082
commit 2ebcbd1254

View File

@@ -16,4 +16,12 @@ for item in *.py *.txt systemd; do
done done
chown -R crypto-trader:crypto-trader "$INSTALL_DIR" chown -R crypto-trader:crypto-trader "$INSTALL_DIR"
echo "Updated. Run a test: sudo -u crypto-trader $INSTALL_DIR/venv/bin/python $INSTALL_DIR/bot.py"
# Sync systemd units and reload if they changed
cp "$INSTALL_DIR/systemd/crypto-trader.service" /etc/systemd/system/
cp "$INSTALL_DIR/systemd/crypto-trader.timer" /etc/systemd/system/
systemctl daemon-reload
systemctl restart crypto-trader.timer
echo "Updated. Next scheduled run:"
systemctl list-timers crypto-trader.timer --no-pager