def _deletePrevious(publishDir, objects, excluded): for obj in objects: if(not obj in excluded): publishlib.myExec("sudo rm -rf %s" % os.path.join(publishDir, obj))
def restartApache(server): print("Restarting apache") if(server == "ubuntu"): publishlib.myExec('sudo /opt/apache/restart', True) else: publishlib.myExec('sudo /sbin/service httpd restart', True)