From 3b33f0eb88e819680ade6d867b1f05878f469c15 Mon Sep 17 00:00:00 2001 From: NEMS Linux Date: Sun, 10 Feb 2019 11:26:22 -0500 Subject: [PATCH] Automatically install NEMS Cockpit theme --- build/170-cockpit | 6 ------ build/171-cockpit | 9 +++++++++ nems-upgrade/1.4.1-1.5 | 3 +++ 3 files changed, 12 insertions(+), 6 deletions(-) create mode 100755 build/171-cockpit diff --git a/build/170-cockpit b/build/170-cockpit index 81b22e5..2b2bf07 100755 --- a/build/170-cockpit +++ b/build/170-cockpit @@ -36,9 +36,3 @@ # Install Cockpit apt update apt --yes install cockpit - - if [[ -d /usr/share/cockpit/branding/debian/ ]]; then - rm -rf /usr/share/cockpit/branding/debian - fi - mkdir -p /usr/share/cockpit/branding/debian - cp -f /root/nems/nems-migrator/data/1.4/cockpit/branding/* /usr/share/cockpit/branding/debian/ diff --git a/build/171-cockpit b/build/171-cockpit new file mode 100755 index 0000000..cb87f44 --- /dev/null +++ b/build/171-cockpit @@ -0,0 +1,9 @@ +#!/bin/bash + +## Remove Cockpit theme and replace with symlink to the NEMS theme + + if [[ -d /usr/share/cockpit/branding/debian/ ]]; then + rm -rf /usr/share/cockpit/branding/debian + fi + mkdir -p /usr/share/cockpit/branding/debian + cp -f /root/nems/nems-migrator/data/1.4/cockpit/branding/* /usr/share/cockpit/branding/debian/ diff --git a/nems-upgrade/1.4.1-1.5 b/nems-upgrade/1.4.1-1.5 index 0e7277b..8d4ede9 100755 --- a/nems-upgrade/1.4.1-1.5 +++ b/nems-upgrade/1.4.1-1.5 @@ -73,6 +73,9 @@ if [[ "$ver" == "1.4.1" ]]; then ## ODROID XU4 changes in 1.5 /root/nems/nems-admin/build/160-odroid-xu4 + ## Replace Cockpit Debian theme with NEMS theme + /root/nems/nems-admin/build/171-cockpit + ## Remove webmin /root/nems/nems-admin/build/220-webmin