Permalink
Browse files

Automatically install NEMS Cockpit theme

  • Loading branch information...
NEMS Linux
NEMS Linux committed Feb 10, 2019
1 parent ceb3a65 commit 3b33f0eb88e819680ade6d867b1f05878f469c15
Showing with 12 additions and 6 deletions.
  1. +0 −6 build/170-cockpit
  2. +9 −0 build/171-cockpit
  3. +3 −0 nems-upgrade/1.4.1-1.5
@@ -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/
@@ -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/
@@ -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

0 comments on commit 3b33f0e

Please sign in to comment.