mirror of
https://github.com/elAgala/server-initializer.git
synced 2026-02-14 05:06:18 +00:00
Fixes
- Fix prometheus files path - Fix sciprt allowing to execute w/out username param - Add oh-my-zsh installation - Fix typo un ssh authorized_keys file - Fix PermitRootLogin disabling
This commit is contained in:
5
index.sh
5
index.sh
@@ -3,6 +3,11 @@
|
||||
REPO_URL="https://github.com/elAgala/server-initializer"
|
||||
TARGET_DIR="/tmp/server-initializer"
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "[ ERROR ]: No username provided. Use ./index.sh <username>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d "$TARGET_DIR" ]; then
|
||||
echo "Cloning the repository..."
|
||||
git clone "$REPO_URL" "$TARGET_DIR"
|
||||
|
||||
Reference in New Issue
Block a user