Skip to content

Commit

Permalink
Automatically install NEMS Cockpit theme
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Feb 10, 2019
1 parent ceb3a65 commit 3b33f0e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build/170-cockpit
Expand Up @@ -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/
9 changes: 9 additions & 0 deletions 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/
3 changes: 3 additions & 0 deletions nems-upgrade/1.4.1-1.5
Expand Up @@ -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

Expand Down

0 comments on commit 3b33f0e

Please sign in to comment.