Examples of chmod()


Examples of org.platformlayer.ops.OpsTarget.chmod()

  void setupIpv6Script() throws OpsException {
    File file = new File(getRoot(), "etc/network/if-up.d/ipv6");
    OpsTarget target = getTarget();
    FileUpload.upload(target, file, runTemplate("ipv6"));
    target.chmod(file, "755");
  }

  void setupLxcConfig() throws OpsException {
    File file = getConfigFile();
    FileUpload.upload(getTarget(), file, runTemplate("lxc.config"));
View Full Code Here

Examples of org.platformlayer.ops.OpsTarget.chmod()

    {
      // Stop services being started in the chroot
      String policy = ResourceUtils.get(getClass(), "usr.sbin.policy-rc.d");
      File policyFile = new File(rootfsDir, "usr/sbin/policy-rc.d");
      FileUpload.upload(target, policyFile, policy);
      target.chmod(policyFile, "755");
    }

    target.executeCommand("mount -t proc proc {0}", new File(rootfsDir, "proc"));

    apt.update(chrootTarget, true);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.