diff --git a/backend/init/viper/viper.go b/backend/init/viper/viper.go index 9e819c702..0e52f81fe 100644 --- a/backend/init/viper/viper.go +++ b/backend/init/viper/viper.go @@ -3,18 +3,19 @@ package viper import ( "bytes" "fmt" + "github.com/1Panel-dev/1Panel/backend/utils/cmd" "strings" "github.com/1Panel-dev/1Panel/backend/configs" "github.com/1Panel-dev/1Panel/backend/global" - "github.com/1Panel-dev/1Panel/backend/utils/cmd" "github.com/1Panel-dev/1Panel/cmd/server/conf" "github.com/fsnotify/fsnotify" "github.com/spf13/viper" ) func Init() { - stdout, err := cmd.Exec("grep '^BASE_DIR=' /usr/bin/1pctl | cut -d'=' -f2") + //stdout, err := cmd.Exec("grep '^BASE_DIR=' /usr/bin/1pctl | cut -d'=' -f2") + stdout, err := cmd.Exec("grep '^BASE_DIR=' /Users/wangzhengkun/Downloads/1pctl | cut -d'=' -f2") if err != nil { panic(err) } diff --git a/frontend/src/views/host/file-management/compress/index.vue b/frontend/src/views/host/file-management/compress/index.vue index 8580c24f4..989bf761a 100644 --- a/frontend/src/views/host/file-management/compress/index.vue +++ b/frontend/src/views/host/file-management/compress/index.vue @@ -1,12 +1,14 @@