it just works
This commit is contained in:
17
server/updater/update.go
Normal file
17
server/updater/update.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package updater
|
||||
|
||||
import (
|
||||
"os/exec"
|
||||
|
||||
"github.com/marcopeocchi/yt-dlp-web-ui/server/config"
|
||||
)
|
||||
|
||||
var path = config.Instance().GetConfig().DownloaderPath
|
||||
|
||||
func UpdateExecutable() error {
|
||||
cmd := exec.Command(path, "-U")
|
||||
cmd.Start()
|
||||
|
||||
err := cmd.Wait()
|
||||
return err
|
||||
}
|
||||
Reference in New Issue
Block a user