/[smecontribs]/rpms/smeserver-user-webspace/contribs8/smeserver-user-webspace-0.1-migratesme7.patch
ViewVC logotype

Annotation of /rpms/smeserver-user-webspace/contribs8/smeserver-user-webspace-0.1-migratesme7.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Wed Dec 11 21:47:52 2013 UTC (10 years, 10 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-user-webspace-0_1-13_el5_sme, HEAD
* Wed Dec 11 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-13.sme
- fix migration from sme7 config db type [SME: 8055]

1 unnilennium 1.1 diff -up smeserver-user-webspace-0.1/root/etc/e-smith/db/configuration/migrate/50userwebspace.migratesme7 smeserver-user-webspace-0.1/root/etc/e-smith/db/configuration/migrate/50userwebspace
2     --- smeserver-user-webspace-0.1/root/etc/e-smith/db/configuration/migrate/50userwebspace.migratesme7 2013-12-11 16:33:24.000000000 -0500
3     +++ smeserver-user-webspace-0.1/root/etc/e-smith/db/configuration/migrate/50userwebspace 2013-12-11 16:33:11.000000000 -0500
4     @@ -0,0 +1,11 @@
5     +{
6     +# this is top cleanly migrate old db entry from sme7 and previous version (type = no|yes)
7     +my $UserPublicWeb = $DB->get('UserPublicWeb') || $DB->new_record('UserPublicWeb', {type => 'service'});
8     +
9     +if ($UserPublicWeb->prop('type') ne 'service')
10     + {
11     + my $status = ($UserPublicWeb->prop('type') eq 'off')?'disabled':'enabled';
12     + $UserPublicWeb->set_prop('type','service');
13     + $UserPublicWeb->set_prop('status',$status);
14     + }
15     +}

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed