configure-zikula.py 551 Bytes
Newer Older
1 2 3
# -*- coding: utf-8 -*-
import sys
import os
4
import shutil
5 6 7 8 9 10 11 12 13 14 15 16

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

  os.chmod(config_php, 0444)
  os.remove(install_php)
  os.remove(upgrade_php)
17
  shutil.rmtree(install_folder)
18 19 20 21
  
if __name__ == '__main__':
  setup(sys.argv[1:])