Added installer

This commit is contained in:
tcsenpai 2024-08-08 14:36:07 +02:00
parent cbefffa297
commit 8bd5198f7a

13
install.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
CURRENT_DIR=$(pwd)
echo "Please grant sudo access to install ollamagents in /usr/local/bin"
sudo -v || exit 1
echo "Working in $CURRENT_DIR"
yarn install || exit 1
echo "#!/bin/bash" >ollamagents
echo "cd $CURRENT_DIR" >>ollamagents
echo "yarn start" >>ollamagents
chmod +x ollamagents
sudo mv ollamagents /usr/local/bin/
echo "Done!"