fixes in execution command and install script
This commit is contained in:
25
README.md
25
README.md
@ -16,24 +16,19 @@ This installation script automates the setup of OpenEMS on a server. It performs
|
|||||||
|
|
||||||
### Installation Instructions
|
### Installation Instructions
|
||||||
|
|
||||||
You can install OpenEMS by following these steps:
|
You can install OpenEMS by executing these commands:
|
||||||
|
|
||||||
1. Download the installation script:
|
|
||||||
```bash
|
```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):
|
# Make it executable
|
||||||
```bash
|
|
||||||
less install-openems.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Make the script executable:
|
|
||||||
```bash
|
|
||||||
chmod +x install-openems.sh
|
chmod +x install-openems.sh
|
||||||
|
|
||||||
|
# Run the installation script
|
||||||
|
./install-openems.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Run the script with sudo:
|
The script will prompt you for:
|
||||||
```bash
|
- The hostname for your server (defaults to current hostname if left empty)
|
||||||
sudo ./install-openems.sh
|
- Whether to set OpenEMS UI as the default site for the server
|
||||||
```
|
|
@ -24,7 +24,8 @@ echo -e "${GREEN}Summary of Configuration:${NC}"
|
|||||||
echo -e "${CYAN}Host: $host${NC}"
|
echo -e "${CYAN}Host: $host${NC}"
|
||||||
echo -e "${CYAN}Set UI as default: ${ui_default}${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
|
if [[ ! "$proceed" =~ ^[Yy][Ee][Ss]$ ]]; then
|
||||||
echo -e "${RED}Installation aborted.${NC}"
|
echo -e "${RED}Installation aborted.${NC}"
|
||||||
|
Reference in New Issue
Block a user