Add update server before initializing | Fix var assignation issue

This commit is contained in:
2025-01-23 21:51:09 -03:00
parent feb4056a84
commit c08b6d393e
5 changed files with 15 additions and 8 deletions

View File

@@ -10,11 +10,18 @@ fi
cd "$TARGET_DIR" || exit 1 cd "$TARGET_DIR" || exit 1
echo "Running install.sh from the cloned repository..." echo "[ INITIALIZER ]: Starting initialization"
echo "[ INITIALIZER ]: Updating server"
sudo apt update && sudo apt upgrade -y && sudo apt dist-upgrade -y && sudo apt autoremove -y
echo "[ INITIALIZER ]: Server updated. Starting set up"
chmod +x ./install.sh chmod +x ./install.sh
./install.sh "$1" ./install.sh "$1"
echo "Cleaning up..." echo "[ INITIALIZER ]: Setup completed succesfully!"
echo "[ INITIALIZER ]: Cleaning up"
cd / cd /
rm -rf "$TARGET_DIR" rm -rf "$TARGET_DIR"
echo "Cleanup complete!" echo "[ INITIALIZER ]: Success!"