From 7cda17aa0749a9d1715102a881d2d22d1ca5f728 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juanjo=20L=C3=B3pez?= <juanjo.lopez@metadrop.net>
Date: Tue, 10 Dec 2024 12:12:48 +0100
Subject: [PATCH] Removed scripts folder creation

---
 .gitignore                           |  2 ++
 commands/host/aljibe-create-symlinks | 52 ----------------------------
 2 files changed, 2 insertions(+), 52 deletions(-)
 create mode 100644 .gitignore
 delete mode 100755 commands/host/aljibe-create-symlinks

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..d5ac763
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.aider*
+.env
diff --git a/commands/host/aljibe-create-symlinks b/commands/host/aljibe-create-symlinks
deleted file mode 100755
index 048555b..0000000
--- a/commands/host/aljibe-create-symlinks
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/bash
-#ddev-generated
-
-## Description: Create symlinks to the scripts provided by Scripthor.
-## Usage: aljibe-create-symlinks
-## Example: "ddev aljibe-create-symlinks"
-
-#!/bin/bash
-
-# Constants
-DIR="./scripts"
-TARGET_DIR="../vendor/metadrop/scripthor/bin/"
-SIMLINK_FILES=("frontend-build.sh" "copy-content-config-entity-to-module.sh" "reload-local.sh" "setup-traefik-port.sh" "backup.sh")
-
-# Create symlinks
-createSymlinks() {
-  if createScriptDir; then
-    createScriptLink
-  else
-    echo "./scripts directory not created."
-    exit 1
-  fi
-}
-
-# Create script directory
-createScriptDir() {
-  if [ ! -d $DIR ]; then
-    echo "./scripts directory created with 755 permissions."
-    mkdir $DIR
-    chmod 755 $DIR
-  fi
-
-  if [ -d $DIR ]; then
-    return 0
-  else
-    return 1
-  fi
-}
-
-# Create script symbolic links
-createScriptLink() {
-  for FILE in "${SIMLINK_FILES[@]}"; do
-    SCRIPT="$DIR/$FILE"
-    if [ ! -f $SCRIPT ]; then
-      ln -s $TARGET_DIR$FILE $SCRIPT
-      echo "Script created: $FILE"
-    fi
-  done
-}
-
-echo "Creating symlinks..."
-createSymlinks
\ No newline at end of file