Scripts and Configs fixed.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user