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-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 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