diff --git a/software/fluxbb/configure-fluxbb.py b/software/fluxbb/configure-fluxbb.py new file mode 100644 index 0000000000000000000000000000000000000000..8e6a5572905b607f81f524182d65b607250e84ce --- /dev/null +++ b/software/fluxbb/configure-fluxbb.py @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +import sys +import os + +def setup(args): + base_url, htdocs, renamed, mysql_user, mysql_password, mysql_database, mysql_host = args + os.rename(os.path.join(htdocs, "config.inc.php"), os.path.join(htdocs, "config.php")) + config_php = os.path.join(htdocs, "config.php") + os.chmod(config_php, 0444) + +if __name__ == '__main__': + setup(sys.argv[1:])