summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-07-04 16:11:04 +0200
committerRaindropsSys <contact@minteck.org>2023-07-04 16:11:04 +0200
commit1a8b9c5349780ed02e5af24c0e68daa12d9e08c3 (patch)
tree77b6442fe8f851f7a2398507a1283b6d3f6fcac9
parent1687ee086ce51050ece0c46b445ad8afa4cdc4b8 (diff)
downloadsynccenter-1a8b9c5349780ed02e5af24c0e68daa12d9e08c3.tar.gz
synccenter-1a8b9c5349780ed02e5af24c0e68daa12d9e08c3.tar.bz2
synccenter-1a8b9c5349780ed02e5af24c0e68daa12d9e08c3.zip
Updated 6 files and added includes/tunnels/cloudsdale.sh (automated)
-rw-r--r--home/index.php14
-rwxr-xr-xincludes/getMyShitUpAndRunning.sh2
-rw-r--r--includes/tunnels/bridlewood.sh2
-rw-r--r--includes/tunnels/cloudsdale.sh4
-rw-r--r--includes/tunnels/everfree.sh2
-rw-r--r--includes/tunnels/zephyrheights.sh2
-rw-r--r--index.php2
7 files changed, 18 insertions, 10 deletions
diff --git a/home/index.php b/home/index.php
index d785500..a2a8cad 100644
--- a/home/index.php
+++ b/home/index.php
@@ -1,6 +1,6 @@
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.php"; ?>
<!doctype html>
-<html lang="en">
+<html lang="en" style="overflow: auto;">
<head>
<meta charset="UTF-8">
<meta name="viewport"
@@ -33,27 +33,31 @@
let state = 0;
for (let item of Object.values(result)) {
- if (item !== "idle" && item !== "syncing" && item !== "sync-preparing" && item !== "scanning") {
+ if (item === "scan-waiting") {
+ if (state < 3) state = 3;
+ } else if (item !== "idle" && item !== "syncing" && item !== "sync-preparing" && item !== "scanning" && item !== "scan-waiting") {
if (state < 2) state = 2;
} else if (item !== "idle") {
if (state < 1) state = 1;
}
}
- document.getElementById("meta-<?= $name ?>").innerText = state === 1 ? "Syncing" : (state === 2 ? "Failed" : "Up to date");
+ document.getElementById("meta-<?= $name ?>").innerText = state === 1 ? "Syncing" : (state === 2 ? "Failed" : (state === 3 ? "Queued" : "Up to date"));
document.getElementById("meta-<?= $name ?>").classList.remove("text-primary");
document.getElementById("meta-<?= $name ?>").classList.remove("text-danger");
document.getElementById("meta-<?= $name ?>").classList.remove("text-success");
- document.getElementById("meta-<?= $name ?>").classList.add(state === 1 ? "text-primary" : (state === 2 ? "text-danger" : "text-success"));
+ document.getElementById("meta-<?= $name ?>").classList.add(state === 1 ? "text-primary" : (state === 2 ? "text-danger" : (state === 3 ? "text-warning" : "text-success")));
}
message_<?= $name ?>();
setInterval(() => {
message_<?= $name ?>();
- }, 5000);
+ }, 10000);
<?php endforeach; ?>
</script>
</div>
+
+ <br><br><br>
</body>
</html> \ No newline at end of file
diff --git a/includes/getMyShitUpAndRunning.sh b/includes/getMyShitUpAndRunning.sh
index 3135451..bc961df 100755
--- a/includes/getMyShitUpAndRunning.sh
+++ b/includes/getMyShitUpAndRunning.sh
@@ -26,7 +26,7 @@ echo "#" >> ~/.tunnel.sh
echo "# ------------------------------------" >> ~/.tunnel.sh
echo "" >> ~/.tunnel.sh
echo "while true; do" >> ~/.tunnel.sh
-echo " ssh -p 2223 -R $port:localhost:8384 -T root@maretimebay.equestria.dev" >> ~/.tunnel.sh
+echo " ssh -o \"TCPKeepAlive=no\" -o \"ServerAliveCountMax=0\" -o \"ServerAliveInterval=0\" -p 2223 -R $port:localhost:8384 -T root@maretimebay.equestria.dev" >> ~/.tunnel.sh
echo "done" >> ~/.tunnel.sh
chmod +x ~/.tunnel.sh
crontab -l > ~/.crontab
diff --git a/includes/tunnels/bridlewood.sh b/includes/tunnels/bridlewood.sh
index f6ae897..944b61f 100644
--- a/includes/tunnels/bridlewood.sh
+++ b/includes/tunnels/bridlewood.sh
@@ -1,4 +1,4 @@
#!/bin/bash
while true; do
- ssh -L 8385:localhost:8384 -T fedora@bridlewood.equestria.dev
+ ssh -o "TCPKeepAlive=no" -o "ServerAliveCountMax=0" -o "ServerAliveInterval=0" -L 8385:localhost:8384 -T fedora@bridlewood.equestria.dev
done \ No newline at end of file
diff --git a/includes/tunnels/cloudsdale.sh b/includes/tunnels/cloudsdale.sh
new file mode 100644
index 0000000..e94d6ca
--- /dev/null
+++ b/includes/tunnels/cloudsdale.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+while true; do
+ ssh -o "TCPKeepAlive=no" -o "ServerAliveCountMax=0" -o "ServerAliveInterval=0" -p 2222 -L 8391:localhost:8384 -T raindrops@cloudsdale.equestria.dev
+done \ No newline at end of file
diff --git a/includes/tunnels/everfree.sh b/includes/tunnels/everfree.sh
index afec5c8..c2a2aa2 100644
--- a/includes/tunnels/everfree.sh
+++ b/includes/tunnels/everfree.sh
@@ -1,4 +1,4 @@
#!/bin/bash
while true; do
- ssh -p 52274 -L 8390:localhost:8384 -T root@everfree.equestria.dev
+ ssh -o "TCPKeepAlive=no" -o "ServerAliveCountMax=0" -o "ServerAliveInterval=0" -p 52274 -L 8390:localhost:8384 -T root@everfree.equestria.dev
done \ No newline at end of file
diff --git a/includes/tunnels/zephyrheights.sh b/includes/tunnels/zephyrheights.sh
index 9f7fdaa..5ac50af 100644
--- a/includes/tunnels/zephyrheights.sh
+++ b/includes/tunnels/zephyrheights.sh
@@ -1,4 +1,4 @@
#!/bin/bash
while true; do
- ssh -p 2222 -L 8386:localhost:8384 -T root@zephyrheights.equestria.dev
+ ssh -o "TCPKeepAlive=no" -o "ServerAliveCountMax=0" -o "ServerAliveInterval=0" -p 2222 -L 8386:localhost:8384 -T root@zephyrheights.equestria.dev
done \ No newline at end of file
diff --git a/index.php b/index.php
index 388ad8d..19f7773 100644
--- a/index.php
+++ b/index.php
@@ -49,7 +49,7 @@
setInterval(() => {
update_<?= $name ?>();
- }, 5000);
+ }, 10000);
</script>
<?php endforeach; ?>
</ul>