This commit is contained in:
dami
2026-03-12 16:16:07 +08:00
parent e8f767a56b
commit ca8b44dd8d
2 changed files with 6 additions and 8 deletions
-6
View File
@@ -208,12 +208,6 @@ class App:
mw.execShell('systemctl disable '+self.getPluginName())
return 'ok'
def conf(self):
return self.getServerDir() + '/dashboard/data/config.yaml'
def run_log(self):
return self.getServerDir() + '/logs/nezha.log'
if __name__ == "__main__":
+6 -2
View File
@@ -37,8 +37,7 @@ get_arch() {
Install_App()
{
curl -fsSL https://ollama.com/install.sh | sh
mkdir -p $serverPath/ollama
echo "$VERSION" > $serverPath/ollama/version.pl
@@ -48,6 +47,11 @@ Install_App()
Uninstall_App()
{
cd ${rootPath} && python3 ${rootPath}/plugins/ollama/index.py stop
if command -v apt &> /dev/null; then
apt remove -y ollama
fi
rm -rf $serverPath/ollama
echo "install fail"
}