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