From bd25a0574e6fde7aa19f438dd0d2533b24ee47ca Mon Sep 17 00:00:00 2001
From: MrDoobPG <46342172+MrDoobPG@users.noreply.github.com>
Date: Sun, 12 Jan 2020 18:02:32 +0100
Subject: [PATCH] old ui rewrite
mountcheck update
( read is docker uploader running )
3 x index.php for replacing
---
menu/functions/autoheal.yml | 43 +++
menu/pgui/templates/autoscan-index.php | 134 ++++----
menu/pgui/templates/index.php | 3 +-
menu/pgui/templates/mountcheck.sh | 25 +-
menu/pgui/templates/oldui.php | 427 +++++++++++++++++++++++++
5 files changed, 551 insertions(+), 81 deletions(-)
create mode 100644 menu/functions/autoheal.yml
create mode 100644 menu/pgui/templates/oldui.php
diff --git a/menu/functions/autoheal.yml b/menu/functions/autoheal.yml
new file mode 100644
index 00000000..f569c329
--- /dev/null
+++ b/menu/functions/autoheal.yml
@@ -0,0 +1,43 @@
+#!/bin/bash
+# Title: autoheal
+# GNU: General Public License v3.0
+################################################################################
+---
+- hosts: localhost
+ gather_facts: false
+ tasks:
+ # FACTS #######################################################################
+ - name: 'Set Known Facts'
+ set_fact:
+ pgrole: 'autoheal'
+ image: 'willfarrell/autoheal'
+ - name: 'Setting {{pgrole}} Volumes'
+ set_fact:
+ pg_volumes:
+ - '/var/run/docker.sock:/var/run/docker.sock'
+ - '/etc/localtime:/etc/localtime:ro'
+
+ - name: 'Setting {{pgrole}} ENV'
+ set_fact:
+ pg_env:
+ AUTOHEAL_CONTAINER_LABEL: 'all'
+ AUTOHEAL_INTERVAL: '5'
+ AUTOHEAL_START_PERIOD: '0'
+ AUTOHEAL_DEFAULT_STOP_TIMEOUT: '10'
+ CURL_TIMEOUT: '30'
+ DOCKER_SOCK: '/var/run/docker.sock'
+
+ # MAIN DEPLOYMENT #############################################################
+ - name: 'Deploying {{pgrole}}'
+ docker_container:
+ name: '{{pgrole}}'
+ image: '{{image}}'
+ pull: yes
+ volumes: '{{pg_volumes}}'
+ env: '{{pg_env}}'
+ restart_policy: unless-stopped
+ networks:
+ - name: plexguide
+ aliases:
+ - 'autoheal'
+ state: started
diff --git a/menu/pgui/templates/autoscan-index.php b/menu/pgui/templates/autoscan-index.php
index add58506..09ace0e6 100644
--- a/menu/pgui/templates/autoscan-index.php
+++ b/menu/pgui/templates/autoscan-index.php
@@ -230,115 +230,97 @@
-
-
-
-
+
- Union - RClone | Mount |
-
+ | Union - RClone | Mount |
+
$output";?> |
- Blitz | Move |
-
+ | Blitz | Move |
+
$output";?> |
-
-
- /mnt/downloads |
+ |
+
+ /mnt/downloads |
$output";?>
- |
- /mnt/move |
-
+ |
+ /mnt/move |
+
$output";?> |
-
-
- mergerfs |
+ |
+
+ mergerfs |
$output";?>
- |
- rClone |
-
+ |
+ rClone |
+
$output";?> |
-
-
-
-
+
+
+ Basic Information
+ |
+
- Edition |
-
+ | Edition |
+
$output" ?> |
- Version |
-
- $output";?> |
- ServerID |
+ Version |
- $output" ?> |
+ $output";?>
- Traefik |
+ ServerID |
+
+ $output" ?> |
+ Traefik |
$output";?> |
- GOAuth |
+ |
+
+ GOAuth |
$output";?> |
- PortGuard |
-
+ | PortGuard |
+
$output";?> |
OS |
- $output";?>
- |
+ $output";?>
Ansible |
$output";?> |
+
+
Used Space |
$output" ?> |
+ GCE |
+
+ $output";?> |
-
- GCE |
-
-
- $output";?>
-
- |
-
-
- Docker
-
-
- |
-
+ | Docker |
+
$output";?> |
- Disk Space |
-
+ | Disk Space |
+
$output";?> |
-
-
-
-
-
-
+
+
+ TDrive | GDrive Section
+ |
+
@@ -426,9 +408,9 @@
$output";?>
-
+
-
+