From cf6753486785d45f571d06749dd85c73dcb20756 Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Fri, 30 Dec 2022 14:30:00 -0500
Subject: linhes-templates: modify custom.sql

---
 linhes/linhes-templates/PKGBUILD                |  4 ++--
 linhes/linhes-templates/templates/db/custom.sql | 21 +++++++--------------
 2 files changed, 9 insertions(+), 16 deletions(-)

diff --git a/linhes/linhes-templates/PKGBUILD b/linhes/linhes-templates/PKGBUILD
index 65abf49..384f590 100644
--- a/linhes/linhes-templates/PKGBUILD
+++ b/linhes/linhes-templates/PKGBUILD
@@ -1,13 +1,13 @@
 pkgname=linhes-templates
 pkgver=9.0.0
-pkgrel=9
+pkgrel=10
 conflicts=()
 pkgdesc="Templates used for LinHES system configuration"
 depends=()
 makedepends=()
 arch=('x86_64')
 source=(templates.tar.gz)
-sha256sums=('1eb6d7a26aab77e6e822db9f00dd621a45754085cc81d4790729f7a9007cfdea')
+sha256sums=('24f40b4b4db356af745688412fc658a0a15aa698c8bbbb4b570f8688e02a437e')
 
 package() {
     MVDIR=$pkgdir/usr/share/linhes
diff --git a/linhes/linhes-templates/templates/db/custom.sql b/linhes/linhes-templates/templates/db/custom.sql
index 1f91bae..9be8ab0 100644
--- a/linhes/linhes-templates/templates/db/custom.sql
+++ b/linhes/linhes-templates/templates/db/custom.sql
@@ -1,9 +1,3 @@
---
-DELETE FROM `settings` where `value`='HostMyhostname';
---
-INSERT INTO `settings` (`value`,`data`,`hostname`) VALUES ('HostMyhostname','type_hostname_here','apheleia');
---
-
 -- Clear out old values because mysql is mysql
 DELETE from settings where value in
 (
@@ -25,7 +19,7 @@ INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
  ('BackendServerIP6'      ,'::1'                           , 'apheleia'),
  ('HaltCommand'           ,'sudo /sbin/halt'               , 'apheleia'),
  ('RebootCommand'         ,'sudo /sbin/reboot'             , 'apheleia'),
- ('Theme'                 ,'LinHES'                        , 'apheleia'),
+ ('Theme'                 ,'LinHES'                        , 'apheleia');
 --
 
 --INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
@@ -53,6 +47,7 @@ INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 
 
 -- /myth based storage groups are obsolete, add_storage.py will create the ones it needs.
+-- putting in artwork ones on disk0
 INSERT INTO `storagegroup` (`groupname`, `hostname`, `dirname`) VALUES
 --  ('Default'     ,'apheleia'    ,'/myth/tv/'),
 --  ('LiveTV'      ,'apheleia'    ,'/myth/tv/live/'),
@@ -113,17 +108,15 @@ INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
  ('UserJobDesc4','','apheleia');
 --
 
-
-
 INSERT INTO `settings` (`value`, `data`, `hostname`) VALUES
 ('MiscStatusScript','/usr/bin/misc_status_info.sh','apheleia');
 
 
 --UPDATE `keybindings`  set `keylist` = "Alt+Esc" WHERE `action` = 'EXITPROMPT' ;
 
--- 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');
+-- Add a dummy tuner and videosource so BE will at least start
+INSERT INTO `capturecard` (`videodevice`,`cardtype`,`defaultinput`,`hostname`) VALUES
+('file://tmp/demo.mpg' , 'DEMO', 'Television', 'apheleia');
 
-INSERT INTO `videosource` (`name`, `xmltvgrabber`) VALUES
-('DEMO_VIDEO_SOURCE' , '/bin/true');
+--INSERT INTO `videosource` (`name`, `xmltvgrabber`) VALUES
+--('DEMO_VIDEO_SOURCE' , '/bin/true');
-- 
cgit v0.12

