From a4366c06f31cc6cf09ff86662faae18dc80721e7 Mon Sep 17 00:00:00 2001 From: abdulhade Date: Thu, 20 Mar 2025 05:54:19 +0300 Subject: [PATCH] Scripts and Configs fixed. --- scripts/manager.sh | 3 +++ scripts/setup.sh | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/manager.sh b/scripts/manager.sh index fe05928..7dd836f 100755 --- a/scripts/manager.sh +++ b/scripts/manager.sh @@ -292,6 +292,9 @@ install() { fi update_config + + print_header "Building the Docker Image..." + if ! build_docker_image; then print_header "Failed to build Docker image." return 1 diff --git a/scripts/setup.sh b/scripts/setup.sh index e49de17..ff846aa 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -43,13 +43,14 @@ else fi # Copy scripts from the code directory to the app directory -cp "$CODE_DIR/scripts/"* "$APP_DIR/scripts/" +cp "$CODE_DIR/scripts/"*.sh "$APP_DIR/scripts/" +cp "$CODE_DIR/scripts/"*.conf "$APP_DIR/configs/" # Give execution permission to all scripts chmod +x "$APP_DIR/scripts/"* mkdir -p "$HOME/.local/bin" -ln -s "$APP_DIR/scripts/manager.sh" "$HOME/.local/bin/db-middleware" +ln -sf "$APP_DIR/scripts/manager.sh" "$HOME/.local/bin/db-middleware" export PATH="$HOME/.local/bin:$PATH" source ~/.bashrc