First pass at a rework of the overlay subsystem in Warewulf
This commit is contained in:
@@ -7,15 +7,12 @@ import (
|
||||
var (
|
||||
baseCmd = &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "chmod [OPTIONS] {runtime|system} OVERLAY_NAME FILENAME MODE",
|
||||
Use: "chmod [OPTIONS] OVERLAY_NAME FILENAME MODE",
|
||||
Short: "Change file permissions in an overlay",
|
||||
Long: `Changes the permissions of a single FILENAME within an overlay specified by
|
||||
overlay type (system or runtime) and its OVERLAY_NAME.
|
||||
|
||||
You can use any MODE format supported by the chmod command.`,
|
||||
Example: "wwctl overlay chmod system default /etc/hostname.ww 0660",
|
||||
RunE: CobraRunE,
|
||||
Args: cobra.ExactArgs(4),
|
||||
Long: "Changes the permissions of a single FILENAME within an overlay.\nYou can use any MODE format supported by the chmod command.",
|
||||
Example: "wwctl overlay chmod default /etc/hostname.ww 0660",
|
||||
RunE: CobraRunE,
|
||||
Args: cobra.ExactArgs(3),
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user