From 7cda17aa0749a9d1715102a881d2d22d1ca5f728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20L=C3=B3pez?= Date: Tue, 10 Dec 2024 12:12:48 +0100 Subject: [PATCH 1/2] 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 From f3c568e1936b8495d0aa74b59f9b8bc8aa41c3c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20L=C3=B3pez?= Date: Tue, 10 Dec 2024 12:15:56 +0100 Subject: [PATCH 2/2] Removed Scripthor folder creation --- commands/host/aljibe-assistant | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/host/aljibe-assistant b/commands/host/aljibe-assistant index d8ae572..4003f24 100755 --- a/commands/host/aljibe-assistant +++ b/commands/host/aljibe-assistant @@ -13,7 +13,6 @@ fi ddev aljibe-logo ddev aljibe-create-project $AUTO -ddev aljibe-create-symlinks echo -e "\e[30;48;5;2m Aljibe is now installed, you can access your site here:\e[0m" ddev drush uli