init
This commit is contained in:
16
install.sh
Executable file
16
install.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Install script for system-wide usage
|
||||
|
||||
# Ensure running as root
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
echo "Please run as root to install globally."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create installation directories
|
||||
mkdir -p /usr/local/lib/jtop
|
||||
cp jtop.jar /usr/local/lib/jtop/
|
||||
cp jtop.sh /usr/local/bin/jtop
|
||||
chmod +x /usr/local/bin/jtop
|
||||
|
||||
echo "jtop installed successfully! You can now run 'jtop' from anywhere."
|
||||
Reference in New Issue
Block a user