update
This commit is contained in:
+2
-1
@@ -4,6 +4,7 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"os/exec"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -250,7 +251,7 @@ Alias=sillyGirl.service`
|
||||
s.Reply(data)
|
||||
return nil
|
||||
}
|
||||
WriteToFile("/usr/lib/systemd/system/sillyGirl.service", (service))
|
||||
os.WriteFile("/usr/lib/systemd/system/sillyGirl.service", []byte(service), 0o644)
|
||||
exec.Command("systemctl", "disable", string(sillyGirl)).Output()
|
||||
exec.Command("systemctl", "enable", string(sillyGirl)).Output()
|
||||
return "电脑重启后生效。"
|
||||
|
||||
Reference in New Issue
Block a user