-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.sh
executable file
·68 lines (59 loc) · 2.49 KB
/
installer.sh
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
# Function to display the welcome message
welcome() {
echo "
╔═══════════════════════════════════════╗
║ ║
║ ~ NoIP Manager Installer ~ ║
║ Developed with ❤️ by ║
║ Felipe Alfonso González L. ║
║ Computer Science Engineer ║
║ Chile ║
║ ║
║ Contact: [email protected] ║
║ Licensed under BSD 3-clause ║
║ GitHub: github.com/felipealfonsog ║
║ ║
╚═══════════════════════════════════════╝
"
echo "Welcome to the NoIP Manager Installer!"
echo "---------------------------------------------------------------------"
}
# Function to display the finished message
finished() {
echo "
╔═══════════════════════════════════════╗
║ ║
║ ~ Installation Complete ~ ║
║ Thank you for installing NoIP ║
║ Manager! The script has been ║
║ successfully installed. ║
║ ║
╚═══════════════════════════════════════╝
"
echo "You can now run the NoIP Manager using the command: noip-admin"
echo "---------------------------------------------------------------------"
}
# Function to clean up temporary files
cleanup() {
echo "Performing cleanup..."
rm -rf NoIP-Manager-v.0.0.1
rm -f v.0.0.1.tar.gz
echo "Cleanup completed."
}
# Display the welcome message
welcome
# Download the package from GitHub
echo "Downloading NoIP Manager..."
curl -L -o v.0.0.1.tar.gz https://github.com/felipealfonsog/NoIP-Manager/archive/refs/tags/v.0.0.1.tar.gz
# Extract the package
echo "Extracting package..."
tar -xzf v.0.0.1.tar.gz
# Move to the src directory and install the script
echo "Installing NoIP Manager..."
sudo cp NoIP-Manager-v.0.0.1/src/noip-admin.sh /usr/local/bin/noip-admin
sudo chmod +x /usr/local/bin/noip-admin
# Perform cleanup
cleanup
# Display the finished message
finished