installers, RT#16584
[freeside.git] / Makefile
1 #!/usr/bin/make
2
3 #solaris and perhaps other very weirdass /bin/sh
4 #SHELL="/bin/ksh"
5
6 DB_TYPE = Pg
7 #DB_TYPE = mysql
8
9 DB_USER = freeside
10 DB_PASSWORD=
11
12 DATASOURCE = DBI:${DB_TYPE}:dbname=freeside
13
14 #changable now (some things which should go to the others still go to CONF)
15 FREESIDE_CONF = /usr/local/etc/freeside
16 FREESIDE_LOG = /usr/local/etc/freeside
17 FREESIDE_LOCK = /usr/local/etc/freeside
18 FREESIDE_CACHE = /usr/local/etc/freeside
19 FREESIDE_EXPORT = /usr/local/etc/freeside
20
21 MASON_HANDLER = ${FREESIDE_CONF}/handler.pl
22 MASONDATA = ${FREESIDE_CACHE}/masondata
23
24 #where to put the default configuraiton used by freeside-setup to initialize
25 #a new database (not used after that).  primarily of interest to distro
26 #package maintainers
27 DIST_CONF = ${FREESIDE_CONF}/default_conf
28
29 #deb
30 FREESIDE_DOCUMENT_ROOT = /var/www/freeside
31 #redhat, fedora, mandrake
32 #FREESIDE_DOCUMENT_ROOT = /var/www/html/freeside
33 #freebsd
34 #FREESIDE_DOCUMENT_ROOT = /usr/local/www/data/freeside
35 #openbsd
36 #FREESIDE_DOCUMENT_ROOT = /var/www/htdocs/freeside
37 #suse
38 #FREESIDE_DOCUMENT_ROOT = /srv/www/htdocs/freeside
39 #apache
40 #FREESIDE_DOCUMENT_ROOT = /usr/local/apache/htdocs/freeside
41
42 #deb, redhat, fedora, mandrake, suse, others?
43 INIT_FILE = /etc/init.d/freeside
44 #freebsd
45 #INIT_FILE = /usr/local/etc/rc.d/011.freeside.sh
46
47 #deb
48 INIT_INSTALL = PATH=$PATH:/sbin /usr/sbin/update-rc.d freeside defaults 23 01
49 #redhat, fedora
50 #INIT_INSTALL = /sbin/chkconfig freeside on
51 #not necessary (freebsd)
52 #INIT_INSTALL = /usr/bin/true
53
54 #deb, suse
55 #HTTPD_RESTART = /etc/init.d/apache restart
56 #deb w/apache2
57 HTTPD_RESTART = /etc/init.d/apache2 restart
58 #redhat, fedora, mandrake
59 #HTTPD_RESTART = /etc/init.d/httpd restart
60 #freebsd
61 #HTTPD_RESTART = /usr/local/etc/rc.d/apache.sh stop || true; sleep 10; /usr/local/etc/rc.d/apache.sh start
62 #openbsd
63 #HTTPD_RESTART = kill -TERM `cat /var/www/logs/httpd.pid`; sleep 10; /usr/sbin/httpd -u -DSSL
64 #apache
65 #HTTPD_RESTART = /usr/local/apache/bin/apachectl stop; sleep 10; /usr/local/apache/bin/apachectl startssl
66
67 #(an include directory, not a file, "Include /etc/apache/conf.d" in httpd.conf)
68 #deb (3.1+), apache2
69 APACHE_CONF = /etc/apache2/conf.d
70 INSSERV_OVERRIDE = /etc/insserv/overrides
71
72 FREESIDE_RESTART = ${INIT_FILE} restart
73
74 #deb, redhat, fedora, mandrake, suse, others?
75 INSTALLGROUP = root
76 #freebsd, openbsd
77 #INSTALLGROUP = wheel
78
79 #edit the stuff below to have the daemons start
80
81 QUEUED_USER=fs_queue
82 API_USER = fs_api
83
84 SELFSERVICE_USER = fs_selfservice
85 #never run on the same machine in production!!!
86 SELFSERVICE_MACHINES = 
87 # SELFSERVICE_MACHINES = www.example.com
88 # SELFSERVICE_MACHINES = web1.example.com web2.example.com
89
90 #user with sudo access on SELFSERVICE_MACHINES for automated self-service
91 #installation.
92 SELFSERVICE_INSTALL_USER = ivan
93 SELFSERVICE_INSTALL_USERADD = /usr/sbin/useradd
94 #SELFSERVICE_INSTALL_USERADD = "/usr/sbin/pw useradd"
95
96 #RT_ENABLED = 0
97 RT_ENABLED = 1
98 RT_DOMAIN = example.com
99 RT_TIMEZONE = US/Pacific
100 #RT_TIMEZONE = US/Eastern
101 FREESIDE_URL = "http://localhost/freeside/"
102
103 #for now, same db as specified in DATASOURCE... eventually, otherwise?
104 RT_DB_DATABASE = freeside
105
106 TORRUS_ENABLED = 0
107
108 # for auto-version updates, so we can "make release" more things automatically
109 RPM_SPECFILE = rpm/freeside.spec
110
111 #---
112
113 #rt/config.layout.in
114 RT_PATH = /opt/rt3
115
116 #only used for dev kludge now, not a big deal
117 FREESIDE_PATH = `pwd`
118 PERL_INC_DEV_KLUDGE = /usr/local/share/perl/5.14.2/
119
120 VERSION := `grep '^$$VERSION' FS/FS.pm | cut -d\' -f2`
121 TAG := freeside_`grep '^$$VERSION' FS/FS.pm | cut -d\' -f2 | perl -pe 's/\./_/g'`
122
123 #DEBVERSION = `echo ${VERSION} | perl -pe 's/(\d)([a-z])/\1~\2/'`-1
124
125 TEXMFHOME := "\$$TEXMFHOME"
126
127 ver:
128         @echo "${VERSION}"
129
130 tag:
131         @echo "${TAG}"
132
133 help:
134         @echo "supported targets:"
135         @echo "                   create-database create-config"
136         @echo "                   install deploy"
137         @echo "                   configure-rt create-rt"
138         @echo "                   clean help"
139         @echo
140         @echo "                   install-docs install-perl-modules"
141         @echo "                   install-init install-apache"
142         @echo "                   install-rt install-texmf"
143         @echo "                   install-selfservice update-selfservice"
144         @echo
145         @echo "                   dev dev-docs dev-perl-modules"
146         @echo
147         @echo "                   masondocs alldocs docs"
148         @echo "                   wikiman"
149         @echo "                   perl-modules"
150         #@echo
151         #@echo "                   upload-docs release"
152
153
154 masondocs: httemplate/* httemplate/*/* httemplate/*/*/* httemplate/*/*/*/*
155         rm -rf masondocs
156         cp -pr httemplate masondocs
157         touch masondocs
158
159 alldocs: masondocs
160
161 docs:
162         make masondocs
163
164 wikiman:
165         chmod a+rx ./bin/pod2x
166         ./bin/pod2x
167
168 install-docs: docs
169         #ancient attempt to avoid overwriting customer modifications directly to production web files that's overlived its usefulness
170         #[ -e ${FREESIDE_DOCUMENT_ROOT} ] && mv ${FREESIDE_DOCUMENT_ROOT} ${FREESIDE_DOCUMENT_ROOT}.`date +%Y%m%d%H%M%S` || true
171         #cp -r masondocs ${FREESIDE_DOCUMENT_ROOT}
172         [ -h ${FREESIDE_DOCUMENT_ROOT} ] && rm ${FREESIDE_DOCUMENT_ROOT} || true
173         mkdir -p ${FREESIDE_DOCUMENT_ROOT}
174         cp -r masondocs/* masondocs/.htaccess ${FREESIDE_DOCUMENT_ROOT}
175         chown -R freeside:freeside ${FREESIDE_DOCUMENT_ROOT}
176         install -D htetc/handler.pl ${MASON_HANDLER}
177         perl -p -i -e "\
178           s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\
179           s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \
180         " ${MASON_HANDLER} || true
181         mkdir -p ${FREESIDE_EXPORT}/profile
182         chown freeside ${FREESIDE_EXPORT}/profile
183         cp htetc/htpasswd.logout ${FREESIDE_CONF}
184         [ ! -e ${MASONDATA} ] && mkdir ${MASONDATA} || true
185         chown -R freeside ${MASONDATA}
186
187 dev-docs:
188         [ -e ${FREESIDE_DOCUMENT_ROOT} ] && mv ${FREESIDE_DOCUMENT_ROOT} ${FREESIDE_DOCUMENT_ROOT}.`date +%Y%m%d%H%M%S` || true
189         ln -s ${FREESIDE_PATH}/httemplate ${FREESIDE_DOCUMENT_ROOT}
190         cp htetc/handler.pl ${MASON_HANDLER}
191         perl -p -i -e "\
192           s'###use Module::Refresh;###'use Module::Refresh;'; \
193           s'###Module::Refresh->refresh;###'Module::Refresh->refresh;'; \
194           s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\
195           s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \
196         " ${MASON_HANDLER} || true
197
198 perl-modules:
199         cd FS; \
200         [ -e Makefile ] || perl Makefile.PL; \
201         make; \
202         perl -p -i -e "\
203           s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
204           s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\
205           s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
206           s'%%%RT_ENABLED%%%'${RT_ENABLED}'g; \
207           s'%%%RT_PATH%%%'${RT_PATH}'g; \
208           s'%%%MASONDATA%%%'${MASONDATA}'g;\
209           s/%%%SELFSERVICE_USER%%%/${SELFSERVICE_USER}/g;\
210         " blib/lib/FS/*.pm;\
211         perl -p -i -e "\
212           s/%%%SELFSERVICE_USER%%%/${SELFSERVICE_USER}/g;\
213           s/%%%SELFSERVICE_MACHINES%%%/${SELFSERVICE_MACHINES}/g;\
214           s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\
215         " blib/lib/FS/Cron/*.pm;\
216         perl -p -i -e "\
217           s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
218           s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\
219           s|%%%FREESIDE_LOG%%%|${FREESIDE_LOG}|g;\
220         " blib/lib/FS/part_export/*.pm;\
221         perl -p -i -e "\
222           s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\
223         " blib/lib/FS/cust_main/*.pm blib/lib/FS/cust_pkg/*.pm;\
224         perl -p -i -e "\
225           s|%%%FREESIDE_LOG%%%|${FREESIDE_LOG}|g;\
226         " blib/lib/FS/Daemon/*.pm;\
227         perl -p -i -e "\
228           s|%%%FREESIDE_CONF%%%|${FREESIDE_CONF}|g;\
229           s|%%%FREESIDE_LOG%%%|${FREESIDE_LOG}|g;\
230           s|%%%FREESIDE_LOCK%%%|${FREESIDE_LOCK}|g;\
231           s|%%%FREESIDE_CACHE%%%|${FREESIDE_CACHE}|g;\
232           s|%%%FREESIDE_EXPORT%%%|${FREESIDE_EXPORT}|g;\
233           s|%%%DIST_CONF%%%|${DIST_CONF}|g;\
234         " blib/script/*
235
236 install-perl-modules: perl-modules install-rt-initialdata
237         [ -L ${PERL_INC_DEV_KLUDGE}/FS ] \
238           && rm ${PERL_INC_DEV_KLUDGE}/FS \
239           && mv ${PERL_INC_DEV_KLUDGE}/FS.old ${PERL_INC_DEV_KLUDGE}/FS \
240           || true
241         cd FS; \
242         make install UNINST=1
243         #install this for freeside-setup
244         install -d $(DIST_CONF)
245         #install conf/[a-z]* $(DEFAULT_CONF)
246         #CVS is not [a-z]
247         install `ls -d conf/[a-z]* | grep -v CVS | grep -v '^conf/registries'` $(DIST_CONF)
248
249 dev-perl-modules: perl-modules
250         [ -d ${PERL_INC_DEV_KLUDGE}/FS -a ! -L ${PERL_INC_DEV_KLUDGE}/FS ] \
251           && mv ${PERL_INC_DEV_KLUDGE}/FS ${PERL_INC_DEV_KLUDGE}/FS.old \
252           || true
253
254         rm -rf ${PERL_INC_DEV_KLUDGE}/FS
255         ln -sf ${FREESIDE_PATH}/FS/blib/lib/FS ${PERL_INC_DEV_KLUDGE}/FS
256
257 install-texmf:  
258         install -D -o freeside -m 444 etc/longtable.sty \
259           /usr/local/share/texmf/tex/latex/longtable.sty
260         texhash /usr/local/share/texmf
261
262 install-init:
263         #[ -e ${INIT_FILE} ] || install -o root -g ${INSTALLGROUP} -m 711 init.d/freeside-init ${INIT_FILE}
264         install -o root -g ${INSTALLGROUP} -m 711 init.d/freeside-init ${INIT_FILE}
265         perl -p -i -e "\
266           s/%%%QUEUED_USER%%%/${QUEUED_USER}/g;\
267           s/%%%API_USER%%%/${API_USER}/g;\
268           s/%%%SELFSERVICE_USER%%%/${SELFSERVICE_USER}/g;\
269           s/%%%SELFSERVICE_MACHINES%%%/${SELFSERVICE_MACHINES}/g;\
270         " ${INIT_FILE}
271         ${INIT_INSTALL}
272
273 install-apache:
274         [ -e ${APACHE_CONF}/freeside-base.conf ] && rm ${APACHE_CONF}/freeside-base.conf || true
275         [ -d ${APACHE_CONF} ] && \
276           ( install -o root -m 755 htetc/freeside-base2.conf ${APACHE_CONF} && \
277             ( [ ${RT_ENABLED} -eq 1 ] && install -o root -m 755 htetc/freeside-rt.conf ${APACHE_CONF} || true ) && \
278             ( [ ${TORRUS_ENABLED} -eq 1 ] && install -o root -m 755 htetc/freeside-torrus.conf ${APACHE_CONF} || true ) && \
279             perl -p -i -e "\
280               s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g; \
281               s'%%%FREESIDE_CONF%%%'${FREESIDE_CONF}'g; \
282               s'%%%MASON_HANDLER%%%'${MASON_HANDLER}'g; \
283             " ${APACHE_CONF}/freeside-*.conf \
284           ) || true
285         [ -d ${INSSERV_OVERRIDE} ] && [ -x /sbin/insserv ] && ( install -o root -m 755 init.d/insserv-override-apache2 ${INSSERV_OVERRIDE}/apache2 && insserv -d ) || true
286
287 install-selfservice:
288         [ -e ~freeside ] || cp -pr /etc/skel ~freeside && chown -R freeside ~freeside
289         [ -e ~freeside/.ssh/id_dsa.pub ] || [ -e ~freeside/.ssh/id_rsa.pub ] || su - freeside -c 'ssh-keygen -t dsa'
290         for MACHINE in ${SELFSERVICE_MACHINES}; do \
291           scp -r fs_selfservice/FS-SelfService ${SELFSERVICE_INSTALL_USER}@$$MACHINE:. ;\
292           ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; perl Makefile.PL && make" ;\
293           ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; sudo make install" ;\
294           scp ~freeside/.ssh/id_dsa.pub ${SELFSERVICE_INSTALL_USER}@$$MACHINE:. ;\
295           ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "sudo ${SELFSERVICE_INSTALL_USERADD} freeside; sudo install -d -o freeside -m 755 ~freeside/.ssh/; sudo install -o freeside -m 600 ./id_dsa.pub ~freeside/.ssh/authorized_keys" ;\
296            ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "sudo install -o freeside -d /usr/local/freeside" ;\
297         done
298
299 update-selfservice:
300         for MACHINE in ${SELFSERVICE_MACHINES}; do \
301           RSYNC_RSH=ssh rsync -rlptz fs_selfservice/FS-SelfService/ ${SELFSERVICE_INSTALL_USER}@$$MACHINE:FS-SelfService ;\
302           ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; make clean; perl Makefile.PL && make" ;\
303           ssh ${SELFSERVICE_INSTALL_USER}@$$MACHINE "cd FS-SelfService; sudo make install" ;\
304         done
305
306 install-chown:
307         chown freeside "${FREESIDE_CACHE}/counters.${DATASOURCE}"
308         chown freeside "${FREESIDE_CACHE}/cache.${DATASOURCE}"
309         chown freeside "${FREESIDE_EXPORT}/export.${DATASOURCE}"
310
311 install: install-perl-modules install-docs install-init install-apache install-rt install-torrus install-texmf install-chown
312
313 deploy: install
314         ${HTTPD_RESTART}
315         ${FREESIDE_RESTART}
316
317 dev: dev-perl-modules dev-docs
318
319 create-database:
320         perl -e 'use DBIx::DataSource qw( create_database ); create_database( "${DATASOURCE}", "${DB_USER}", "${DB_PASSWORD}" ) or die $$DBIx::DataSource::errstr;'
321
322 create-config: install-perl-modules
323         [ -e ${FREESIDE_CONF} ] && mv ${FREESIDE_CONF} ${FREESIDE_CONF}.`date +%Y%m%d%H%M%S` || true
324         install -d -o freeside ${FREESIDE_CONF}
325
326         touch ${FREESIDE_CONF}/secrets
327         chown freeside ${FREESIDE_CONF}/secrets
328         chmod 600 ${FREESIDE_CONF}/secrets
329
330         /bin/echo -e "${DATASOURCE}\n${DB_USER}\n${DB_PASSWORD}" >${FREESIDE_CONF}/secrets
331         chmod 600 ${FREESIDE_CONF}/secrets
332         chown freeside ${FREESIDE_CONF}/secrets
333
334         mkdir "${FREESIDE_CACHE}/counters.${DATASOURCE}"
335         chown freeside "${FREESIDE_CACHE}/counters.${DATASOURCE}"
336
337         mkdir "${FREESIDE_CACHE}/cache.${DATASOURCE}"
338         chown freeside "${FREESIDE_CACHE}/cache.${DATASOURCE}"
339
340         mkdir "${FREESIDE_EXPORT}/export.${DATASOURCE}"
341         chown freeside "${FREESIDE_EXPORT}/export.${DATASOURCE}"
342
343         #install this for freeside-setup
344         install -d $(DIST_CONF)
345         #install conf/[a-z]* $(DEFAULT_CONF)
346         #CVS is not [a-z]
347         install `ls -d conf/[a-z]* | grep -v CVS | grep -v '^conf/registries'` $(DIST_CONF)
348
349
350 configure-rt:
351         cd rt; \
352         cp config.layout.in config.layout; \
353         perl -p -i -e "\
354           s'%%%FREESIDE_DOCUMENT_ROOT%%%'${FREESIDE_DOCUMENT_ROOT}'g;\
355           s'%%%MASONDATA%%%'${MASONDATA}'g;\
356         " config.layout; \
357         ./configure --enable-layout=Freeside\
358                     --with-db-type=${DB_TYPE} \
359                     --with-db-dba=${DB_USER} \
360                     --with-db-database=${RT_DB_DATABASE} \
361                     --with-db-rt-user=${DB_USER} \
362                     --with-db-rt-pass="${DB_PASSWORD}" \
363                     --with-web-user=freeside \
364                     --with-web-group=freeside \
365                     --with-rt-group=freeside \
366                     --with-web-handler=modperl2
367
368 create-rt: configure-rt
369         [ -d /opt           ] || mkdir /opt           #doh
370         [ -d /opt/rt3       ] || mkdir /opt/rt3       #
371         [ -d /opt/rt3/share ] || mkdir /opt/rt3/share #
372         cd rt; make install
373         rt/sbin/rt-setup-database --dba '${DB_USER}' \
374                                   --dba-password '${DB_PASSWORD}' \
375                                   --action schema \
376          || true
377         rt/sbin/rt-setup-database --dba-password '${DB_PASSWORD}' \
378                                   --action coredata \
379         && rt/sbin/rt-setup-database --dba-password '${DB_PASSWORD}' \
380                                      --action insert \
381                                      --datafile ${RT_PATH}/etc/initialdata \
382         || true
383
384 install-rt: 
385         if [ ${RT_ENABLED} -eq 1 ]; then ( cd rt; make install ); fi
386         if [ ${RT_ENABLED} -eq 1 ]; then perl -p -i -e "\
387           s'%%%RT_DOMAIN%%%'${RT_DOMAIN}'g;\
388           s'%%%RT_TIMEZONE%%%'${RT_TIMEZONE}'g;\
389           s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\
390         " ${RT_PATH}/etc/RT_SiteConfig.pm; fi
391         if [ ${RT_ENABLED} -eq 1 ]; then \
392           chown -R freeside:freeside ${RT_PATH}/etc; fi
393
394 install-rt-initialdata:
395         if [ ${RT_ENABLED} -eq 1 ] && [ -d ${RT_PATH} ]; then \
396           chown -R freeside:freeside ${RT_PATH}/etc; \
397           install -D -o freeside -g freeside -m 0440 rt/etc/initialdata \
398           ${RT_PATH}/etc/initialdata; fi
399
400 configure-torrus:
401         cd torrus; \
402         torrus_user=freeside var_user=freeside var_group=freeside ./configure
403
404 install-torrus:
405         if [ ${TORRUS_ENABLED} -eq 1 ]; then ( cd torrus; \
406           make; \
407           make install; \
408           perl -p -i -e "\
409             s'%%%FREESIDE_URL%%%'${FREESIDE_URL}'g;\
410           " /usr/local/etc/torrus/conf/torrus-siteconfig.pl; \
411           torrus clearcache \
412         );fi
413
414 clean:
415         rm -rf masondocs
416         rm -rf httemplate/docs/man
417         rm -rf pod2htmi.tmp
418         rm -rf pod2htmd.tmp
419         -cd FS; \
420         make clean
421         -cd fs_selfservice/FS-SelfService; \
422         make clean
423
424 #these are probably only useful if you're me...
425
426 #release: upload-docs
427 .PHONY: release
428 release:
429         # Update the changelog
430         #./bin/cvs2cl
431         #cvs commit -m "Updated for ${VERSION}" ChangeLog
432
433         # Update the RPM specfile
434         #cvs edit ${RPM_SPECFILE}
435         #perl -p -i -e "s/\d+[^\}]+/${VERSION}/ if /%define\s+version\s+(\d+[^\}]+)\}/;" ${RPM_SPECFILE}
436         #perl -p -i -e "s/\d+[^\}]+/1/ if /%define\s+release\s+(\d+[^\}]+)\}/;" ${RPM_SPECFILE}
437         #cvs commit -m "Updated for ${VERSION}" ${RPM_SPECFILE}
438
439         # Update the Debian changelog
440         #cvs edit debian/changelog
441         #dch -v ${DEBVERSION} -p "New upstream release"
442         #cvs commit -m "Updated for ${VERSION}" debian/changelog
443
444         # Make sure other people's changes are pulled in!
445         git pull
446
447         # Tag the release
448         git tag -f ${TAG}
449
450         #cd /home/ivan
451         git archive --prefix=freeside-${VERSION}/ ${TAG} | gzip -9 >freeside-${VERSION}.tar.gz
452
453         scp freeside-${VERSION}.tar.gz ivan@420.am:/var/www/www.sisd.com/freeside/
454         mv freeside-${VERSION}.tar.gz ..
455
456         #these things failing should not make release target fail, so: "|| true"
457
458         #kick off vmware update
459         #./BUILD_VMWARE_APPLIANCE ${$TAG} || true
460
461         #kick off deb package update
462
463         #kick off rpm package update too?
464
465         #update web demo?
466
467         #update web demo self-service?
468