You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
438 B
24 lines
438 B
package main
|
|
|
|
import (
|
|
"flag"
|
|
"fmt"
|
|
"github.com/openimsdk/open-im-server/v3/tools/s3/internal"
|
|
"os"
|
|
)
|
|
|
|
func main() {
|
|
var (
|
|
name string
|
|
config string
|
|
)
|
|
flag.StringVar(&name, "name", "", "old previous storage name")
|
|
flag.StringVar(&config, "config", "", "config directory")
|
|
flag.Parse()
|
|
if err := internal.Main(config, name); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
fmt.Fprintln(os.Stdout, "success")
|
|
}
|