Temporary routine to copy over a few mandatory files. Bug: don't set the pretend flag on apk.
This commit is contained in:
parent
e5eff8ede0
commit
0162e92ed0
18
main.go
18
main.go
|
@ -230,10 +230,26 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
// Copy any mandatory configuration files over before continuing.
|
||||
// TODO: This will be replaced with a full copy later.
|
||||
{
|
||||
var err error
|
||||
|
||||
os.Remove("/etc/apk/world")
|
||||
err = os.Link("/config/etc/apk/world",
|
||||
"/etc/apk/world")
|
||||
if err != nil { fmt.Println(err) }
|
||||
|
||||
os.Remove("/etc/caddy/CaddyFile")
|
||||
err = os.Link("/config/etc/caddy/Caddyfile",
|
||||
"/etc/caddy/CaddyFile")
|
||||
if err != nil { fmt.Println(err) }
|
||||
}
|
||||
|
||||
// Install and remove packages
|
||||
{
|
||||
fmt.Println("Installing packages")
|
||||
args := []string{"add", "-s", "-u", "-l"}
|
||||
args := []string{"add", "-u", "-l"}
|
||||
out, err := exec.Command("/sbin/apk", args...).CombinedOutput()
|
||||
if err != nil {
|
||||
fmt.Println("===")
|
||||
|
|
Loading…
Reference in a new issue