diff --git a/README.md b/README.md index 03b9b6e..14c6a44 100644 --- a/README.md +++ b/README.md @@ -16,24 +16,19 @@ This installation script automates the setup of OpenEMS on a server. It performs ### Installation Instructions -You can install OpenEMS by following these steps: +You can install OpenEMS by executing these commands: -1. Download the installation script: ```bash -curl -O https://git.mumme-it.de/Mumme-IT/openems-build/src/branch/main/installation/install-openems.sh -``` +# Download the script +curl -sfLO https://git.mumme-it.de/Mumme-IT/openems-build/raw/branch/main/installation/install-openems.sh -2. Review the script contents (recommended for security): -```bash -less install-openems.sh -``` - -3. Make the script executable: -```bash +# Make it executable chmod +x install-openems.sh + +# Run the installation script +./install-openems.sh ``` -4. Run the script with sudo: -```bash -sudo ./install-openems.sh -``` +The script will prompt you for: +- The hostname for your server (defaults to current hostname if left empty) +- Whether to set OpenEMS UI as the default site for the server \ No newline at end of file diff --git a/installation/install-openems.sh b/installation/install-openems.sh index 36ec722..44d07e5 100755 --- a/installation/install-openems.sh +++ b/installation/install-openems.sh @@ -24,7 +24,8 @@ echo -e "${GREEN}Summary of Configuration:${NC}" echo -e "${CYAN}Host: $host${NC}" echo -e "${CYAN}Set UI as default: ${ui_default}${NC}" -read -p "${CYAN}Do you want to proceed with the installation? (yes/no): ${NC}" proceed +echo -e "${CYAN}Do you want to proceed with the installation? (yes/no): ${NC}" +read proceed if [[ ! "$proceed" =~ ^[Yy][Ee][Ss]$ ]]; then echo -e "${RED}Installation aborted.${NC}"