Scripts and Configs fixed.

This commit is contained in:
2025-03-20 05:54:19 +03:00
parent 9f09ca5b35
commit a4366c06f3
2 changed files with 6 additions and 2 deletions

View File

@@ -292,6 +292,9 @@ install() {
fi fi
update_config update_config
print_header "Building the Docker Image..."
if ! build_docker_image; then if ! build_docker_image; then
print_header "Failed to build Docker image." print_header "Failed to build Docker image."
return 1 return 1

View File

@@ -43,13 +43,14 @@ else
fi fi
# Copy scripts from the code directory to the app directory # 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 # Give execution permission to all scripts
chmod +x "$APP_DIR/scripts/"* chmod +x "$APP_DIR/scripts/"*
mkdir -p "$HOME/.local/bin" 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" export PATH="$HOME/.local/bin:$PATH"
source ~/.bashrc source ~/.bashrc