From 058be22a55840f71850b2f26108fdbba88ccef00 Mon Sep 17 00:00:00 2001 From: Esteban Mackay Q Date: Fri, 25 Aug 2023 16:38:41 -0500 Subject: [PATCH] Update update.sh --- update.sh | 55 ++++++++++++++++++++++++++----------------------------- 1 file changed, 26 insertions(+), 29 deletions(-) diff --git a/update.sh b/update.sh index e71e278..916613c 100644 --- a/update.sh +++ b/update.sh @@ -1107,35 +1107,32 @@ cat > /opt/FDMR-Monitor/templates/main_table.html <<- "EOF" EOF # -sudo sed -i "s/1100/1200/g" /opt/FDMR-Monitor/templates/*.* -sudo sed -i 's/b1eee9/3bb43d/' /var/www/fdmr/css/*.* -sudo sed -i "s/Copyright (c) 2016-.*/Copyright (c) \"2016\") {\$cdate=\"2016-\".date(\"Y\");} echo \$cdate; ?>
/g" /var/www/fdmr/*.php -sudo sed -i "s/meta name=\"description.*/meta name=\"description\" content=\"Copyright (c) 2016-22.The Regents of the K0USY Group. All rights reserved. Version OA4DOA 2022 (v270422)\">/g" /var/www/fdmr/*.php -sudo sed -i '166 s/hotpink/#ad02fd/g' /var/www/fdmr/css/styles.php -sudo sed -i '217 s/color:white/color:black/' /var/www/fdmr/css/styles.php -sudo sed -i "251d" /var/www/fdmr/css/styles.php -sudo sed '250 a ' -i /var/www/fdmr/css/styles.php - -sudo sed '21 a # For custom color, select: pro' -i /opt/FDMR-Monitor/fdmr-mon.cfg - -sudo sed '24 a COLOR_TEXT = #fff519' -i /opt/FDMR-Monitor/fdmr-mon.cfg -sudo sed '25 a COLOR_1 = #000080' -i /opt/FDMR-Monitor/fdmr-mon.cfg -sudo sed '26 a COLOR_2 = #193dff' -i /opt/FDMR-Monitor/fdmr-mon.cfg -#sudo sed '27 a COLOR_BACKGROUND = 5a5958' -i /opt/FDMR-Monitor/fdmr-mon.cfg - -sudo sed '45 a $cd1 = strtolower($config["GLOBAL"]["COLOR_1"]);' -i /var/www/fdmr/include/config.php -sudo sed '46 a $cd2 = strtolower($config["GLOBAL"]["COLOR_2"]);' -i /var/www/fdmr/include/config.php -sudo sed '47 a $cd3 = strtolower($config["GLOBAL"]["COLOR_TEXT"]);' -i /var/www/fdmr/include/config.php -sudo sed '48 a $cd3 = strtolower($config["GLOBAL"]["COLOR_TEXT"]);' -i /var/www/fdmr/include/config.php -sudo sed '49 a $cd4 = strtolower($config["GLOBAL"]["COLOR_BACKGROUND"]);' -i /var/www/fdmr/include/config.php - -sudo sed '66 a } elseif ($theme == "pro") {' -i /var/www/fdmr/include/config.php -sudo sed '67 a $tc = "background-image: linear-gradient(to bottom, $cd1 0%, $cd2 100%);color:$cd3;";' -i /var/www/fdmr/include/config.php - -sudo sed -i "s/THEME_COLOR = .*/THEME_COLOR = pro/g" /opt/FDMR-Monitor/fdmr-mon.cfg -#sudo sed -i "s/PEER_URL = .*/PEER_URL = https:\/\/freedmr-lh.gb7fr.org.uk\/json\/peer_ids.json/g" /opt/FDMR-Monitor/fdmr-mon.cfg -#sudo sed -i "s/SUBSCRIBER_URL = .*/SUBSCRIBER_URL = http:\/\/datafiles.ddns.net:8888\/user.csv/g" /opt/FDMR-Monitor/fdmr-mon.cfg -#sudo sed -i "s/TGID_URL = .*/TGID_URL = http:\/\/datafiles.ddns.net:8888\/talkgroup_ids_json.php/g" /opt/FDMR-Monitor/fdmr-mon.cfg +sed -i "s/1100/1200/g" /opt/FDMR-Monitor/templates/*.* +sed -i "s/Copyright (c) 2016-.*/Copyright (c) \"2016\") {\$cdate=\"2016-\".date(\"Y\");} echo \$cdate; ?>
/g" /var/www/fdmr/*.php +sed -i "s/meta name=\"description.*/meta name=\"description\" content=\"Copyright (c) 2016-22.The Regents of the K0USY Group. All rights reserved. Version OA4DOA 2022 (v270422)\">/g" /var/www/fdmr/*.php +sed -i '166 s/hotpink/#ad02fd/g' /var/www/fdmr/css/styles.php +sed -i '217 s/color:white/color:black/' /var/www/fdmr/css/styles.php +sed -i "251d" /var/www/fdmr/css/styles.php +sed '250 a ' -i /var/www/fdmr/css/styles.php + +sed '21 a # For custom color, select: pro' -i /opt/FDMR-Monitor/fdmr-mon.cfg + +sed '24 a COLOR_TEXT = #fff519' -i /opt/FDMR-Monitor/fdmr-mon.cfg +sed '25 a COLOR_1 = #000080' -i /opt/FDMR-Monitor/fdmr-mon.cfg +sed '26 a COLOR_2 = #193dff' -i /opt/FDMR-Monitor/fdmr-mon.cfg +#sed '27 a COLOR_BACKGROUND = 5a5958' -i /opt/FDMR-Monitor/fdmr-mon.cfg + +sed '45 a $cd1 = strtolower($config["GLOBAL"]["COLOR_1"]);' -i /var/www/fdmr/include/config.php +sed '46 a $cd2 = strtolower($config["GLOBAL"]["COLOR_2"]);' -i /var/www/fdmr/include/config.php +sed '47 a $cd3 = strtolower($config["GLOBAL"]["COLOR_TEXT"]);' -i /var/www/fdmr/include/config.php +sed '48 a $cd3 = strtolower($config["GLOBAL"]["COLOR_TEXT"]);' -i /var/www/fdmr/include/config.php +sed '49 a $cd4 = strtolower($config["GLOBAL"]["COLOR_BACKGROUND"]);' -i /var/www/fdmr/include/config.php + +sed '66 a } elseif ($theme == "pro") {' -i /var/www/fdmr/include/config.php +sed '67 a $tc = "background-image: linear-gradient(to bottom, $cd1 0%, $cd2 100%);color:$cd3;";' -i /var/www/fdmr/include/config.php + +sed -i "s/THEME_COLOR = .*/THEME_COLOR = pro/g" /opt/FDMR-Monitor/fdmr-mon.cfg +#sed -i "s/TGID_URL = .*/TGID_URL = https:\/\/freedmr.cymru\/talkgroups\/talkgroup_ids_json.php/g" /opt/FDMR-Monitor/fdmr-mon.cfg if [ -f "mon.db" ] then