Skip to content
Permalink
Browse files

Remove cockpit from Docker

  • Loading branch information...
NEMS Linux
NEMS Linux committed Aug 26, 2019
1 parent d33d784 commit 237cd6269eacac4b64a89cd3063e92ad4057a085
Showing with 18 additions and 7 deletions.
  1. +7 −3 build/170-cockpit
  2. +11 −4 build/171-cockpit
@@ -1,18 +1,22 @@
#!/bin/bash
echo $0 > /var/www/html/userfiles/nems-build.cur

platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)

# POSSIBLY move to self-compile
# https://tech.maweki.de/installing-cockpit-on-raspbian.html
# https://github.com/cockpit-project/cockpit/releases

# May not be necessary since Buster now includes it in repos

# Install Cockpit
apt update
apt -y install cockpit
# Install cockpit on all but Docker
if (( $platform != 21 )); then
apt update
apt -y install cockpit
fi

# Install cockpit-networkmanager on all but Docker and AWS
platform=$(/usr/local/share/nems/nems-scripts/info.sh platform)
if (( $platform != 21 )) && (( $platform != 22 )); then
apt -y install cockpit-networkmanager
fi
@@ -6,8 +6,15 @@ echo $0 > /var/www/html/userfiles/nems-build.cur
## 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
# Do not bother with cockpit branding on Docker (as cockpit is not installed)
if (( $platform != 21 )); then

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.5/cockpit/branding/* /usr/share/cockpit/branding/debian/

fi
mkdir -p /usr/share/cockpit/branding/debian
cp -f /root/nems/nems-migrator/data/1.5/cockpit/branding/* /usr/share/cockpit/branding/debian/

rm /var/www/html/userfiles/nems-build.cur

0 comments on commit 237cd62

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