package com.inet.gradle.setup.abstracts;
public abstract class AbstractUnixSetupTask extends AbstractSetupTask {
public AbstractUnixSetupTask( String extension ) {
super( extension );
}
private String daemonUser = "root";
/**
* Returns the user with which the daemon should be running. If no user was specified the default root user will be
* used.
*
* @return the user for the daemon
*/
public String getDaemonUser() {
if( daemonUser.trim().isEmpty() ) {
return "root";
} else {
return daemonUser;
}
}
/**
* Sets the user with which the daemon should be running.
*/
public void setDaemonUser( String daemonUser ) {
this.daemonUser = daemonUser;
}
}