From 7e2485bdbfd71b719aec9eb950b307b1646beba4 Mon Sep 17 00:00:00 2001
From: Tine <tine@tjo.space>
Date: Thu, 6 Mar 2025 20:35:20 +0100
Subject: [PATCH] feat(id.tjo.space): changes

---
 id.tjo.space/LICENSE => LICENSE |  0
 id.tjo.space/install.sh         |  2 +-
 id.tjo.space/justfile           | 46 ---------------------------------
 justfile                        | 46 +++++++++++++++++++++++++++++++++
 4 files changed, 47 insertions(+), 47 deletions(-)
 rename id.tjo.space/LICENSE => LICENSE (100%)

diff --git a/id.tjo.space/LICENSE b/LICENSE
similarity index 100%
rename from id.tjo.space/LICENSE
rename to LICENSE
diff --git a/id.tjo.space/install.sh b/id.tjo.space/install.sh
index 3a534e1..de60657 100755
--- a/id.tjo.space/install.sh
+++ b/id.tjo.space/install.sh
@@ -2,7 +2,7 @@
 set -euo pipefail
 
 echo "== Fetch Source Code (from git)"
-cd "$HOME/service"
+cd "/root/service"
 # Clone if not yet cloned
 if [ ! -d .git ]; then
   git clone \
diff --git a/id.tjo.space/justfile b/id.tjo.space/justfile
index 5875c20..db76c49 100644
--- a/id.tjo.space/justfile
+++ b/id.tjo.space/justfile
@@ -1,52 +1,6 @@
 default:
   @just --list
 
-dot-env-encrypt:
-  sops \
-    --encrypt \
-    --input-type=dotenv \
-    --output-type=dotenv \
-    .env > .env.encrypted
-
-dot-env-decrypt:
-  sops \
-    --decrypt \
-    --input-type=dotenv \
-    --output-type=dotenv \
-    .env.encrypted > .env
-
-tofu-state-encrypt:
-  #!/bin/bash
-  for file in $(find -name tofu.tfstate -o -name terraform.tfstate)
-  do
-    echo "Encrypting $file"
-    sops \
-      --encrypt \
-      --input-type=json \
-      --output-type=json \
-      $file > ${file}.encrypted
-  done
-
-tofu-state-decrypt:
-  #!/bin/bash
-  for file in $(find -name tofu.tfstate.encrypted -o -name terraform.tfstate.encrypted)
-  do
-    echo "Decrypting $file"
-    sops \
-      --decrypt \
-      --input-type=json \
-      --output-type=json \
-      $file > ${file%.encrypted}
-  done
-
-lint:
-  @tofu fmt -check -recursive .
-  @tflint --recursive
-
-format:
-  @tofu fmt -recursive .
-  @tflint --recursive
-
 apply:
   #!/usr/bin/env sh
   cd {{source_directory()}}/terraform
diff --git a/justfile b/justfile
index 155f4d0..82627ff 100644
--- a/justfile
+++ b/justfile
@@ -7,3 +7,49 @@ mod id 'id.tjo.space'
 
 default:
   @just --list
+
+lint:
+  @tofu fmt -check -recursive .
+  @tflint --recursive
+
+format:
+  @tofu fmt -recursive .
+  @tflint --recursive
+
+dot-env-encrypt:
+  sops \
+    --encrypt \
+    --input-type=dotenv \
+    --output-type=dotenv \
+    .env > .env.encrypted
+
+dot-env-decrypt:
+  sops \
+    --decrypt \
+    --input-type=dotenv \
+    --output-type=dotenv \
+    .env.encrypted > .env
+
+tofu-state-encrypt:
+  #!/bin/bash
+  for file in $(find -name tofu.tfstate -o -name terraform.tfstate)
+  do
+    echo "Encrypting $file"
+    sops \
+      --encrypt \
+      --input-type=json \
+      --output-type=json \
+      $file > ${file}.encrypted
+  done
+
+tofu-state-decrypt:
+  #!/bin/bash
+  for file in $(find -name tofu.tfstate.encrypted -o -name terraform.tfstate.encrypted)
+  do
+    echo "Decrypting $file"
+    sops \
+      --decrypt \
+      --input-type=json \
+      --output-type=json \
+      $file > ${file%.encrypted}
+  done