-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
30 lines (24 loc) · 835 Bytes
/
install.sh
File metadata and controls
30 lines (24 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
# APT Cache Proxy Configurator Installation Script
# Define the source script and destination path
SRC_SCRIPT="src/connect-to-apt-cache.sh"
DEST_SCRIPT="/usr/local/bin/connect-to-apt-cache.sh"
# Check if the script exists
if [ ! -f "$SRC_SCRIPT" ]; then
echo "[ERROR] Source script not found: $SRC_SCRIPT"
exit 1
fi
# Copy the script to the destination
echo "[INFO] Installing connect-to-apt-cache.sh to $DEST_SCRIPT..."
sudo cp "$SRC_SCRIPT" "$DEST_SCRIPT"
# Set executable permissions
echo "[INFO] Setting executable permissions..."
sudo chmod +x "$DEST_SCRIPT"
# Verify installation
if [ -f "$DEST_SCRIPT" ]; then
echo "[SUCCESS] Installation completed successfully."
echo "[INFO] You can now run the script using: connect-to-apt-cache.sh"
else
echo "[ERROR] Installation failed."
exit 1
fi