mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
update
This commit is contained in:
@@ -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__":
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user