Compare commits

..

3 Commits

Author SHA1 Message Date
8d5296d9ea Merge branch 'main' of https://gitea.jde.nz/public/dropshell
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
2025-05-13 21:56:47 +12:00
524d3df1b2 dropshell release 2025.0513.2156 2025-05-13 21:56:24 +12:00
54dce4862f Update README.md
Some checks failed
Dropshell Test / Build_and_Test (push) Has been cancelled
2025-05-13 21:54:18 +12:00
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,9 @@
# Dropshell # Dropshell
A system management tool for server operations, written in C++. A system management tool for server operations, written in C++.
## Installation
```
curl -fsSL https://gitea.jde.nz/public/dropshell/releases/download/latest/install.sh | bash
```

View File

@ -3,6 +3,12 @@ set -e
# download and install dropshell # download and install dropshell
# Check if running as root
if [ "$EUID" -ne 0 ]; then
print_error "Please run this script as root (use sudo)"
exit 1
fi
# 1. Determine architecture # 1. Determine architecture
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@ -33,8 +39,9 @@ fi
chmod +x "$TMPDIR/dropshell" chmod +x "$TMPDIR/dropshell"
docker run --rm -v "$TMPDIR:/tmp" -v /usr/local/bin:/target alpine sh -c "cp /tmp/dropshell /target/dropshell && ln -s /target/dropshell /target/ds" cp "$TMPDIR/dropshell" /usr/local/bin/dropshell
rm "$TMPDIR/dropshell" ln -s /usr/local/bin/dropshell /usr/local/bin/ds
rm -rf "$TMPDIR"
echo "dropshell installed successfully to /usr/local/bin/dropshell" echo "dropshell installed successfully to /usr/local/bin/dropshell"