summaryrefslogtreecommitdiffstats
path: root/abs/core/mythdb-initial/custom.sql
blob: 7c9758925287c61c28746465a1a8a57e00b8c609 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
--
DELETE FROM `settings` where `value`='HostMyhostname';
--
INSERT INTO `settings` (`value`,`data`,`hostname`) VALUES ('HostMyhostname','type_hostname_here','apheleia');
--

-- set default settings for mythinstall/systemconfig programs
INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('Hostpluginmytharchive','1','apheleia'),
 ('Hostpluginmythbrowser','1','apheleia'),
 ('Hostpluginmythcontrols','1','apheleia'),
 ('Hostpluginmythnetvision','0','apheleia'),
 ('Hostpluginmythgallery','0','apheleia'),
 ('Hostpluginmythgame','1','apheleia'),
 ('HostpluginmythgameROMDB','0','apheleia'),
 ('Hostpluginmythgamefceux','0','apheleia'),
 ('Hostpluginmythgamesnes9x','0','apheleia'),
 ('HostpluginmythgameMame','1','apheleia'),
 ('HostpluginmythgameDolphin','0','apheleia'),
 ('HostpluginmythgameXe','0','apheleia'),
 ('HostpluginmythgameMednafen','0','apheleia'),
 ('HostpluginmythgameMupen64','0','apheleia'),
 ('Hostpluginmythmusic','1','apheleia'),
 ('Hostpluginmythnews','1','apheleia'),
 ('Hostpluginmythvideo_dvdcss','0','apheleia'),
 ('Hostpluginmythweather','1','apheleia'),
 ('Hostpluginmythzoneminder','0','apheleia'),
 ('Hostpluginmythappletrailers','1','apheleia'),
 ('HostBEWait','1','apheleia'),
 ('Hostupdateplan','Notify','apheleia'),
 ('HostAudiotype','ALSA','apheleia');

-- Clear out old values because mysql is mysql
DELETE from settings where value in
('WOLbackendReconnectWaitTime','AutoStartFrontend',
 'AllowQuitShutdown','BackendServerIP'
 'BackendServerIP6','HaltCommand'
 'RebootCommand','Theme'
 'LircSocket');

INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('WOLbackendReconnectWaitTime','5',NULL);

INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('AutoStartFrontend'     ,'1'                             , 'apheleia'),
 ('AllowQuitShutdown'     ,'4'                             , 'apheleia'),
 ('BackendServerIP'       ,'127.0.0.1'                     , 'apheleia'),
 ('BackendServerIP6'      ,'::1'                           , 'apheleia'),
 ('HaltCommand'           ,'sudo /sbin/halt'               , 'apheleia'),
 ('RebootCommand'         ,'sudo /sbin/reboot'             , 'apheleia'),
 ('Theme'                 ,'LinHES'                        , 'apheleia'),
 ('ThemePainter'          ,'auto'                          , 'apheleia'),
 ('LircSocket'            ,'/var/run/lirc/lircd'           , 'apheleia');
--

INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('NonID3FileNameFormat'        ,'GENRE/ARTIST/ALBUM/TRACK_TITLE' , 'apheleia'),
 ('CDDevice'                    ,'/dev/cdrom'                     , 'apheleia'),
 ('MusicAudioDevice'            ,'default'                        , 'apheleia'),
 ('MythArchiveCopyRemoteFiles'  ,'1'                              , 'apheleia'),
 ('GalleryDir'                  ,'/myth/gallery'                  , 'apheleia'),
 ('MusicLocation'               ,'/myth/music/'                   , 'apheleia'),
 ('mythgame.screenshotdir'      ,'/myth/games/screenshots'        , 'apheleia'),
 ('mythgame.fanartdir'          ,'/myth/games/fanart'             , 'apheleia'),
 ('mythgame.boxartdir'          ,'/myth/games/boxart'             , 'apheleia'),
 ('MythArchiveTempDir'          ,'/myth/tmp'                      , 'apheleia');


-- MythVideo old local dir..replaced by storage groups, but should set values to null

INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
('ScreenShotPath'              ,''  , 'apheleia'),
('VideoStartupDir'             ,''  , 'apheleia'),
('mythvideo.TrailersDir'       ,''  , 'apheleia'),
('VideoArtworkDir'             ,''  , 'apheleia'),
('mythvideo.screenshotDir'     ,''  , 'apheleia'),
('mythvideo.bannerDir'         ,''  , 'apheleia'),
('mythvideo.fanartDir'         ,''  , 'apheleia');

-- MythVideo old local dir..replaced by storage groups
/*
INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('ScreenShotPath'              ,'/myth/artwork/screenshots'  , 'apheleia'),
 ('VideoStartupDir'             ,'/myth/video'                    , 'apheleia'),
 ('mythvideo.TrailersDir'       ,'/myth/artwork/trailers'     , 'apheleia'),
 ('VideoArtworkDir'             ,'/myth/artwork/coverart'     , 'apheleia'),
 ('mythvideo.screenshotDir'     ,'/myth/artwork/screenshots'  , 'apheleia'),
 ('mythvideo.bannerDir'         ,'/myth/artwork/banners'      , 'apheleia'),
 ('mythvideo.fanartDir'         ,'/myth/artwork/fanart'       , 'apheleia');
*/


-- /myth based storage groups are obsolete, add_storage.py will create the ones it needs.
-- INSERT INTO `storagegroup` (`groupname`, `hostname`, `dirname`) VALUES
--  ('Default'     ,'apheleia'    ,'/myth/tv/'),
--  ('LiveTV'      ,'apheleia'    ,'/myth/tv/live/'),
--  ('Screenshots' ,'apheleia'    ,'/myth/artwork/screenshots/'),
--  ('Videos'      ,'apheleia'    ,'/myth/video/'),
--  ('Coverart'    ,'apheleia'    ,'/myth/artwork/coverart/'),
--  ('Banners'     ,'apheleia'    ,'/myth/artwork/banners/'),
--  ('Fanart'      ,'apheleia'    ,'/myth/artwork/fanart/'),
--  ('Trailers'    ,'apheleia'    ,'/myth/artwork/trailers/'),
--  ('Streaming'   ,'apheleia'    ,'/myth/streaming'),
--  ('DB Backups'  ,'apheleia'    ,'/data/storage/disk0/backup/mythtv_backups/');


-- Clear out old values because mysql is mysql
DELETE from settings where value in
('OverrideExitMenu','NetworkControlEnabled''SecurityPin',
 'BackendStopCommand',
 'BackendStartCommand');

INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
('OverrideExitMenu','3','apheleia'),
('NetworkControlEnabled','1','apheleia'),
('SecurityPin','0000','apheleia'),
('BackendStopCommand','sudo sv stop mythbackend' ,NULL),
('BackendStartCommand','sudo sv start mythbackend' ,NULL);

--

-- Clear out old user jobs
DELETE FROM `settings` where value in
('JobAllowUserJob1',
 'JobAllowUserJob2',
 'JobAllowUserJob3',
 'JobAllowUserJob4',
 'UserJob1',
 'UserJob2',
 'UserJob3',
 'UserJob4',
 'UserJobDesc1',
 'UserJobDesc2',
 'UserJobDesc3',
 'UserJobDesc4');


INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('JobAllowUserJob1','1','apheleia'),
 ('JobAllowUserJob2','1','apheleia'),
 ('JobAllowUserJob3','1','apheleia'),
 ('JobAllowUserJob4','0','apheleia'),
 ('UserJob1','/usr/LH/bin/mythvidexport.py %JOBID%','apheleia'),
 ('UserJob2','/usr/LH/bin/myth2mkv "%DIR%/%FILE%" "%CHANID%" "%STARTTIME%" "%TITLE%" "%SUBTITLE%" "%JOBID%" "HP"','apheleia'),
 ('UserJob3','/usr/LH/bin/myth2mp3 "%DIR%/%FILE%" "%TITLE% - %SUBTITLE%" "%CHANID%" "%STARTTIME%"','apheleia'),
 ('UserJob4','','apheleia'),
 ('UserJobDesc1','Copy to Videos','apheleia'),
 ('UserJobDesc2','Encode to x264 mkv','apheleia'),
 ('UserJobDesc3','Encode Audio to mp3','apheleia'),
 ('UserJobDesc4','','apheleia');
--



INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
('MiscStatusScript','/usr/LH/bin/misc_status_info.sh','apheleia');


UPDATE `keybindings`  set `keylist` = "Alt+Esc" WHERE `action` = 'EXITPROMPT' ;

-- Force windowmanager to enlightnemnet, install supplemental and use enhanced
INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
('HostWindowManager'  , 'enlightenment' ,'apheleia'),
('HOSTSupplemental'   , '1'             ,'apheleia'),
('HostEnhancedWMStyle', '1'             ,'apheleia');


--  Defaults for OS install
INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
('HOSTuprootfstype','ext4' ,   'apheleia'),
('HOSTOSsize',      '5'    ,   'apheleia'),
('HOSTrootfstype',  'ext4' ,   'apheleia'),
('HOSTHOMEsize',    '5'    ,   'apheleia'),
('HOSTDatabasesize','2'    ,   'apheleia'),
('HostUseSWAP',     '1'    ,   'apheleia'),
('HostUseALLdata',  '1'    ,   'apheleia'),
('HOSTdatafstype',  'xfs'  ,   'apheleia');

-- Add a dummy tuner so BE will at least start
INSERT INTO `capturecard` (`videodevice`,`cardtype`,`defaultinput`,`hostname`,`sourceid`) VALUES
('file://tmp/demo.mpg' , 'DEMO', 'Television', 'apheleia', '1');

INSERT INTO `videosource` (`name`, `xmltvgrabber`) VALUES
('DEMO_VIDEO_SOURCE' , '/bin/true');