Skip to content
Permalink
Browse files

Replace NEMS branding in Cockpit after update

  • Loading branch information...
NEMS Linux
NEMS Linux committed Mar 16, 2019
1 parent 9848b85 commit bb11c0e4c32188dfe9de57c743f3a68c3d81211f
Showing with 10 additions and 3 deletions.
  1. +4 −1 build/171-cockpit
  2. +6 −2 build/999-cleanup
@@ -1,11 +1,14 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

# ** This file also gets called by NEMS daily fixes **


## Remove Cockpit theme and replace with symlink to the NEMS theme
platform=$(/usr/local/bin/nems-info platform)

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/
cp -f /root/nems/nems-migrator/data/1.5/cockpit/branding/* /usr/share/cockpit/branding/debian/
@@ -2,8 +2,12 @@
# Clean up any cruft left behind

# Remove any MOTD items included with the base distro
rm /etc/update-motd.d/*
rm /etc/motd.d/*
if [[ -e /etc/update-motd.d/* ]]; then
rm /etc/update-motd.d/*
fi
if [[ -e /etc/motd.d/* ]]; then
rm /etc/motd.d/*
fi

# Remove progress
if [[ -e /var/www/html/userfiles/nems-build.cur ]]; then

0 comments on commit bb11c0e

Please sign in to comment.
You can’t perform that action at this time.