Cant remember

This commit is contained in:
2025-01-29 18:53:44 -06:00
parent 458819910a
commit ee48ff7e5a
4 changed files with 33 additions and 3 deletions

29
bin/sunhat-upgrade Normal file
View File

@ -0,0 +1,29 @@
#!/bin/bash
echo "Updating ollama..."
source $SUNHAT_PATH/install/optional/service_ollama.sh
echo "Ollama Update Complete."
echo "Updating Espanso..."
cd ~/.local/share/sunhat/packages/espanso
git pull
cargo install --force cargo-make --version 0.34.0
cargo make --profile release --env NO_X11=true build-binary
sudo mv target/release/espanso /usr/local/bin/espanso
sudo setcap "cap_dac_override+p" $(which espanso)
espanso service register
espanso start
echo "Espanso Update Complete."
echo "Updating John the Ripper..."
cd ~/.local/share/sunhat/packages/JohnTheRipper/src
git pull
./configure && make
echo "John the Ripper Update Complete."
echo "Updating Hanabi"
cd ~/.local/share/sunhat/packages/hanabi
git pull
./run.sh install
echo "Hanabi installed"

View File

@ -136,12 +136,13 @@ Description=Ollama Service
After=network-online.target After=network-online.target
[Service] [Service]
ExecStart=/bin/bash -lc 'OLLAMA_HOST=0.0.0.0:4242 $BINDIR/ollama serve' ExecStart=$BINDIR/ollama serve
User=ollama User=ollama
Group=ollama Group=ollama
Restart=always Restart=always
RestartSec=3 RestartSec=3
Environment="PATH=$PATH" Environment="PATH=$PATH"
Environment="OLLAMA_HOST=0.0.0.0:4242"
[Install] [Install]
WantedBy=default.target WantedBy=default.target

Submodule packages/espanso updated: b9ac086adf...fd9a7dd4f2

Submodule packages/grub-btrfs updated: f682e17b30...b509fcaf61