Compare commits
3 Commits
2025.0514.
...
2025.0514.
Author | SHA1 | Date | |
---|---|---|---|
2397c665a5 | |||
a828100878 | |||
fcc517a115 |
10
README.md
10
README.md
@ -5,5 +5,13 @@ A system management tool for server operations, written in C++.
|
|||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -fsSL https://gitea.jde.nz/public/dropshell/releases/download/latest/install.sh | bash
|
curl -fsSL https://gitea.jde.nz/public/dropshell/releases/download/latest/install.sh | sudo bash
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation of Agent
|
||||||
|
|
||||||
|
Install the Agent on each server you wish to manage. Supports amd64 (x86_64) and arm64 (aarch64) architectures.
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -fsSL https://gitea.jde.nz/public/dropshell/releases/download/latest/server_autosetup.sh | sudo bash
|
||||||
```
|
```
|
@ -5,7 +5,7 @@ set -e
|
|||||||
|
|
||||||
# Check if running as root
|
# Check if running as root
|
||||||
if [ "$EUID" -ne 0 ]; then
|
if [ "$EUID" -ne 0 ]; then
|
||||||
print_error "Please run this script as root (use sudo)"
|
echo "Please run this script as root (use sudo)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -40,6 +40,9 @@ fi
|
|||||||
chmod +x "$TMPDIR/dropshell"
|
chmod +x "$TMPDIR/dropshell"
|
||||||
|
|
||||||
cp "$TMPDIR/dropshell" /usr/local/bin/dropshell
|
cp "$TMPDIR/dropshell" /usr/local/bin/dropshell
|
||||||
|
if [ -f /usr/local/bin/ds ]; then
|
||||||
|
rm -f /usr/local/bin/ds
|
||||||
|
fi
|
||||||
ln -s /usr/local/bin/dropshell /usr/local/bin/ds
|
ln -s /usr/local/bin/dropshell /usr/local/bin/ds
|
||||||
rm -rf "$TMPDIR"
|
rm -rf "$TMPDIR"
|
||||||
|
|
||||||
|
@ -97,18 +97,6 @@ chsh -s /bin/bash dropshell
|
|||||||
|
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
|
|
||||||
# download dropshell
|
|
||||||
|
|
||||||
# determine if x86_64 or arm64
|
|
||||||
ARCH=$(uname -m)
|
|
||||||
|
|
||||||
# check is aarch64 or x86_64 and error if neither
|
|
||||||
if [ "$ARCH" != "aarch64" ] && [ "$ARCH" != "x86_64" ]; then
|
|
||||||
echo "Unsupported architecture: $ARCH"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "Installation complete."
|
echo "Installation complete."
|
||||||
|
|
||||||
#--------------------------------
|
#--------------------------------
|
||||||
|
Reference in New Issue
Block a user