File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
engine/schema/src/main/java/com/cloud/upgrade Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 86
86
87
87
public class SystemVmTemplateRegistration {
88
88
private static final Logger LOGGER = Logger .getLogger (SystemVmTemplateRegistration .class );
89
- private static final String UMOUNT_COMMAND = "sudo umount %s" ;
89
+ private static final String UMOUNT_COMMAND = "umount %s" ;
90
90
private static final String RELATIVE_TEMPLATE_PATH = "./engine/schema/dist/systemvm-templates/" ;
91
91
private static final String ABSOLUTE_TEMPLATE_PATH = "/usr/share/cloudstack-management/templates/systemvm/" ;
92
92
private static final String TEMPLATES_PATH = fetchTemplatesPath ();
@@ -147,7 +147,7 @@ public SystemVmTemplateRegistration(String systemVmTemplateVersion) {
147
147
}
148
148
149
149
public static String getMountCommand (String nfsVersion , String device , String dir ) {
150
- String cmd = "sudo mount -t nfs" ;
150
+ String cmd = "mount -t nfs" ;
151
151
if (StringUtils .isNotBlank (nfsVersion )) {
152
152
cmd = String .format ("%s -o vers=%s" , cmd , nfsVersion );
153
153
}
You can’t perform that action at this time.
0 commit comments