configure-nucleus.py 446 Bytes
Newer Older
Mohamadou Mbengue's avatar
Mohamadou Mbengue committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# -*- coding: utf-8 -*-
import sys
import os

def setup(args):
  mysql_port, mysql_host, mysql_user, mysql_password, mysql_database, base_url, htdocs = args
  
  config_php = os.path.join(htdocs, "config.php")
  install_php = os.path.join(htdocs, "install.php")
  install_sql = os.path.join(htdocs, "install.sql")

  os.chmod(config_php, 0444)
  os.remove(install_php)
  os.remove(install_sql)
  
if __name__ == '__main__':
  setup(sys.argv[1:])