Esempio n. 1
0
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))
Esempio n. 2
0
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)