diff --git a/reload-cockpit.sh b/reload-cockpit.sh new file mode 100755 index 0000000..795abda --- /dev/null +++ b/reload-cockpit.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# usage: +# reload-cockpit.sh +# +# This script first ensures that cockpit is installed and setup, then it will +set -x + +LOCAL=/usr/local +LOCAL_SCRIPTS=("temperature.sh" "cockpitScript.sh") + +# Check if the script is run as root +if [ "$EUID" -ne 0 ]; then + echo "Permission denied. Please run as root." + exit 1 +fi + +# Copy cockpit files to the correct locations +rm -rf /usr/share/cockpit/general +mkdir -p /usr/share/cockpit/general +cp -rf ui/general/* /usr/share/cockpit/general/ +cp -rf ui/branding-ubuntu/* /usr/share/cockpit/branding/ubuntu/ +cp -rf ui/static/* /usr/share/cockpit/static/ +cp -rf ui/base1/* /usr/share/cockpit/base1/ + +[ -d $LOCAL/echopilot ] || mkdir $LOCAL/echopilot +install -Dm755 version.txt $LOCAL/echopilot/. + +for script in "${LOCAL_SCRIPTS[@]}"; do + install -Dm755 $script $LOCAL/echopilot/$script +done + +# Restart the cockpit service +# systemctl daemon-reload +# systemctl restart cockpit.socket diff --git a/ui/general/docker-compose.html b/ui/general/docker-compose.html new file mode 100644 index 0000000..5294907 --- /dev/null +++ b/ui/general/docker-compose.html @@ -0,0 +1,36 @@ + + + + + Docker Compose Status + + + + + + + +
+
+
+

Docker Compose

+

Docker Compose page.

+ + +
+
+
+ + + + + \ No newline at end of file diff --git a/ui/general/docker-compose.js b/ui/general/docker-compose.js new file mode 100644 index 0000000..e69de29 diff --git a/ui/general/docker-health.html b/ui/general/docker-health.html new file mode 100644 index 0000000..bb611f5 --- /dev/null +++ b/ui/general/docker-health.html @@ -0,0 +1,36 @@ + + + + + Docker Health Status + + + + + + + +
+
+
+

Docker Health

+

Docker Health page.

+ + +
+
+
+ + + + + \ No newline at end of file diff --git a/ui/general/docker.js b/ui/general/docker-health.js similarity index 100% rename from ui/general/docker.js rename to ui/general/docker-health.js diff --git a/ui/general/docker.html b/ui/general/docker.html deleted file mode 100644 index 1f5e05d..0000000 --- a/ui/general/docker.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - Docker Configuration - - - - - - - -
-
-
-

Docker Configuration

-

Docker Configuration page.

-
-
-
- - - - - \ No newline at end of file diff --git a/ui/general/manifest.json b/ui/general/manifest.json index 0fb44b0..bbb5f26 100644 --- a/ui/general/manifest.json +++ b/ui/general/manifest.json @@ -24,7 +24,7 @@ }, "Docker": { "label": "Docker", - "path": "docker.html", + "path": "docker-health.html", "order": 3, "keywords": [ {