Changes between Version 12 and Version 13 of SysAdmin/Jenkins


Ignore:
Timestamp:
01/05/15 15:09:38 (7 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SysAdmin/Jenkins

    v12 v13  
    3434rm -rf /home/web2py/applications/sqlite/sessions/*
    3535rm -rf /home/web2py/applications/sqlite/tests/selenium/results/*
    36 cp -f /home/web2py/applications/sqlite/private/templates/default/000_config.py /home/web2py/applications/sqlite/models
     36cp -f /home/web2py/applications/sqlite/modules/templates/default/000_config.py /home/web2py/applications/sqlite/models
    3737sed -i 's|EDITING_CONFIG_FILE = False|EDITING_CONFIG_FILE = True|' /home/web2py/applications/sqlite/models/000_config.py
    38 sed -i 's|deployment_settings.base.prepopulate = 1|deployment_settings.base.prepopulate = 27|' /home/web2py/applications/sqlite/models/000_config.py
     38sed -i 's|settings.base.prepopulate = 1|settings.base.prepopulate = 27|' /home/web2py/applications/sqlite/models/000_config.py
    3939sed -i 's|127.0.0.1:8000|sqlite.eden.sahanafoundation.org|' /home/web2py/applications/sqlite/models/000_config.py
    40 sed -i 's|#deployment_settings.ui.navigate_away_confirm = False|deployment_settings.ui.navigate_away_confirm = False|' /home/web2py/applications/sqlite/models/000_config.py
     40sed -i 's|#settings.ui.navigate_away_confirm = False|settings.ui.navigate_away_confirm = False|' /home/web2py/applications/sqlite/models/000_config.py
    4141cd ~web2py
    4242python web2py.py -S sqlite -M -R applications/sqlite/static/scripts/tools/noop.py
    43 sed -i 's|deployment_settings.base.migrate = True|deployment_settings.base.migrate = False|' /home/web2py/applications/sqlite/models/000_config.py
    44 sed -i 's|deployment_settings.base.prepopulate = 27|deployment_settings.base.prepopulate = 0|' /home/web2py/applications/sqlite/models/000_config.py
     43sed -i 's|settings.base.migrate = True|settings.base.migrate = False|' /home/web2py/applications/sqlite/models/000_config.py
     44sed -i 's|settings.base.prepopulate = 27|settings.base.prepopulate = 0|' /home/web2py/applications/sqlite/models/000_config.py
    4545python web2py.py -S sqlite -R applications/sqlite/static/scripts/tools/compile.py
    4646
     
    6161cp -f "/home/web2py/applications/mysql/private/template/default/000_config.py" "/home/web2py/applications/mysql/models"
    6262sed -i 's|EDITING_CONFIG_FILE = False|EDITING_CONFIG_FILE = True|' "/home/web2py/applications/mysql/models/000_config.py"
    63 sed -i 's|deployment_settings.base.prepopulate = 1|deployment_settings.base.prepopulate = 27|' "/home/web2py/applications/mysql/models/000_config.py"
     63sed -i 's|settings.base.prepopulate = 1|settings.base.prepopulate = 27|' "/home/web2py/applications/mysql/models/000_config.py"
    6464sed -i 's|127.0.0.1:8000|mysql.eden.sahanafoundation.org|' "/home/web2py/applications/mysql/models/000_config.py"
    6565sed -i 's|database.db_type = "sqlite"|database.db_type = "mysql"|' "/home/web2py/applications/mysql/models/000_config.py"
    6666sed -i 's|database.username = "sahana"|database.username = "root"|' "/home/web2py/applications/mysql/models/000_config.py"
    6767sed -i 's|database.password = "password"|database.password = "eden"|' "/home/web2py/applications/mysql/models/000_config.py"
    68 sed -i 's|#deployment_settings.ui.navigate_away_confirm = False|deployment_settings.ui.navigate_away_confirm = False|' "/home/web2py/applications/mysql/models/000_config.py"
     68sed -i 's|#settings.ui.navigate_away_confirm = False|settings.ui.navigate_away_confirm = False|' "/home/web2py/applications/mysql/models/000_config.py"
    6969cd ~web2py
    7070#sudo -H -u web2py python web2py.py -S mysql -M -R applications/mysql/static/scripts/tools/noop.py
    7171python web2py.py -S mysql -M -R applications/mysql/static/scripts/tools/noop.py
    72 sed -i 's|deployment_settings.base.migrate = True|deployment_settings.base.migrate = False|' "/home/web2py/applications/mysql/models/000_config.py"
    73 sed -i 's|deployment_settings.base.prepopulate = 27|deployment_settings.base.prepopulate = 0|' "/home/web2py/applications/mysql/models/000_config.py"
     72sed -i 's|settings.base.migrate = True|settings.base.migrate = False|' "/home/web2py/applications/mysql/models/000_config.py"
     73sed -i 's|settings.base.prepopulate = 27|settings.base.prepopulate = 0|' "/home/web2py/applications/mysql/models/000_config.py"
    7474python web2py.py -S mysql -R applications/mysql/static/scripts/tools/compile.py
    7575
     
    9393cp -f "/home/web2py/applications/postgresql/private/templates/default/000_config.py" "/home/web2py/applications/postgresql/models"
    9494sed -i 's|EDITING_CONFIG_FILE = False|EDITING_CONFIG_FILE = True|' "/home/web2py/applications/postgresql/models/000_config.py"
    95 sed -i 's|deployment_settings.base.prepopulate = 1|deployment_settings.base.prepopulate = 27|' "/home/web2py/applications/postgresql/models/000_config.py"
     95sed -i 's|settings.base.prepopulate = 1|settings.base.prepopulate = 27|' "/home/web2py/applications/postgresql/models/000_config.py"
    9696sed -i 's|127.0.0.1:8000|postgresql.eden.sahanafoundation.org|' "/home/web2py/applications/postgresql/models/000_config.py"
    97 sed -i 's|deployment_settings.gis.spatialdb = False|deployment_settings.gis.spatialdb = True|' "/home/web2py/applications/postgresql/models/000_config.py"
     97sed -i 's|settings.gis.spatialdb = False|settings.gis.spatialdb = True|' "/home/web2py/applications/postgresql/models/000_config.py"
    9898sed -i 's|database.db_type = "sqlite"|database.db_type = "postgres"|' "/home/web2py/applications/postgresql/models/000_config.py"
    9999sed -i 's|database.password = "password"|database.password = "eden"|' "/home/web2py/applications/postgresql/models/000_config.py"
    100 sed -i 's|#deployment_settings.ui.navigate_away_confirm = False|deployment_settings.ui.navigate_away_confirm = False|' "/home/web2py/applications/postgresql/models/000_config.py"
     100sed -i 's|#settings.ui.navigate_away_confirm = False|settings.ui.navigate_away_confirm = False|' "/home/web2py/applications/postgresql/models/000_config.py"
    101101cd ~web2py
    102102#sudo -H -u web2py python web2py.py -S postgresql -M -R applications/postgresql/static/scripts/tools/noop.py
    103103python web2py.py -S postgresql -M -R applications/postgresql/static/scripts/tools/noop.py
    104 sed -i 's|deployment_settings.base.migrate = True|deployment_settings.base.migrate = False|' "/home/web2py/applications/postgresql/models/000_config.py"
    105 sed -i 's|deployment_settings.base.prepopulate = 27|deployment_settings.base.prepopulate = 0|' "/home/web2py/applications/postgresql/models/000_config.py"
     104sed -i 's|settings.base.migrate = True|settings.base.migrate = False|' "/home/web2py/applications/postgresql/models/000_config.py"
     105sed -i 's|settings.base.prepopulate = 27|settings.base.prepopulate = 0|' "/home/web2py/applications/postgresql/models/000_config.py"
    106106python web2py.py -S postgresql -R applications/postgresql/static/scripts/tools/compile.py
    107107
     
    111111----
    112112SysAdmin
     113SysAdmin