• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:exit +full:- +full:code

3 # steps to take following a release of new code to keep things working.
9 # - pull code from a source repository
13 # - install or update client code (new "atest" build?)
17 # - suid helper or similar?
21 # - any finishing touches you may require.
23 # ---
27 # ---
32 echo "--- $STATUS"
37 exit 1
40 # ---
44 if (! test -f $INIT_SCR)
47 exit 1
55 exit 1
63 exit 1
69 # --- stop autotest persistent code
71 print_status "Stopping autotest persistent code"
74 # --- sync code (site-specific)
76 if (test -x $BASE_DIR/site_utils/site_sync_code)
78 print_status "Syncing code"
79 su $BECOME_USER -c $BASE_DIR/site_utils/site_sync_code || exit 1
82 # --- run database migrations
84 # - AFE
88 su $BECOME_USER -c "python ../database/migrate.py \
89 --database=AUTOTEST_WEB safesync"
90 su $BECOME_USER -c "python manage.py syncdb --noinput"
91 su $BECOME_USER -c "python manage.py syncdb --noinput"
94 # - TKO
98 su $BECOME_USER -c "python ../database/migrate.py \
99 --database=TKO safesync"
102 # - SITE_DB
106 su $BECOME_USER -c "python ../database/migrate.py \
107 --database=TKO safesync"
110 # - Django syncdb
117 su $BECOME_USER -c "python manage.py syncdb --noinput"
121 # --- compile GWT
123 print_status "Compiling GWT code."
125 su $BECOME_USER -c "$BASE_DIR/utils/compile_gwt_clients.py -a" || fatal
128 # --- fix gwt permissions
133 find -type d | xargs chmod o+rx ) || fatal
135 # --- update cli repository (site-specific)
137 if (test -x $BASE_DIR/site_utils/site_install_cli)
140 su $BECOME_USER -c $BASE_DIR/site_utils/site_install_cli || fatal
143 # --- restart autotest persistent code
145 print_status "Restarting autotest persistent code"
148 # --- possibly restart Apache (site-specific)
150 if (test -x $BASE_DIR/site_utils/site_restart_apache)
153 su $BECOME_USER -c $BASE_DIR/site_utils/site_restart_apache || fatal
156 # --- do any site-specific finalization
158 if (test -x $BASE_DIR/site_utils/site_restart_final)
161 su $BECOME_USER -c $BASE_DIR/site_utils/site_restart_final || fatal