---
# System prepended metadata

title: Install Instruction Report

---

# Install Instruction Report

## Nginx
Following Instructions From : [Issue#31 - Nginx Install](https://gitlab.com/evatix-go/os-manuals/-/issues/31#note_557214547) && Discussions.
### Instruction 1
### Passes :
- [x] Virtual Machine
- [x] Docker
### Script : 
```json=
{
  "EnvVars": [
  ],
  "PackageDependencies": [
  ],
  "PathModifiers": [
  ],
  "ConditionalMessageOnPreInstalledPackages": [
  ],
  "EnvPaths": [
  ],
  "OsRepos": {
    "UbuntuRepos": [
    ]
  },
  "OsServices": [
    {
      "Post": [

      ]
    }
  ],
  "UpdateApt": {
    "IsUpdateApt": false,
    "IsUpdateAptGet": false,
    "IsAptUpgrade": false
  },
  "SymbolicLinks": [
  ],
  "InstallMethods": {
    "InstallUsingUrls": [
    ],
    "InstallUsingOsPackages": {
      "PackageNames": [
        "nginx"
      ],
      "PostScriptLinesWithType": {
        "ScriptLines": [
          "service nginx start"
        ]
      }
    }
  }
}
```

### Instruction 2
### Passes :
- [x] Virtual Machine
- [ ] Docker
    - Installs nginx but overall installation fails because : 
        - systemctl 
### Script : 
```json=
{
  "EnvVars": [
  ],
  "PackageDependencies": [
  ],
  "PathModifiers": [
  ],
  "ConditionalMessageOnPreInstalledPackages": [
  ],
  "EnvPaths": [
  ],
  "OsRepos": {
    "UbuntuRepos": [
    ]
  },
  "OsServices": [
    {
      "Post": [
        
      ]
    }
  ],
  "UpdateApt": {
    "IsUpdateApt": true,
    "IsUpdateAptGet": false,
    "IsAptUpgrade": false
  },
  "SymbolicLinks": [
  ],
  "InstallMethods": {
    "InstallUsingUrls": [
    ],
    "InstallUsingOsPackages": {
      "PackageNames": [
        "nginx",
        "nginx-common"
      ],
      "PostScriptLinesWithType": {
        "ScriptLines": [
          "ufw allow 'Nginx Full'",
          "ufw allow 'Nginx HTTP'",
          "ufw allow 'Nginx HTTPS'",
          "ufw app list",
          "ufw status verbose",
          "systemctl restart nginx",
          "systemctl status nginx"
        ]
      }
    }
  }
}
```

### Instruction 3
### Passes :
- [x] Virtual Machine
- [ ] Docker
    -  fails because : 
        - 'gcc' not installed
        - 'make' not installed
### Script : 
```json=
{
  "EnvVars": [
  ],
  "PackageDependencies": [
  ],
  "PathModifiers": [
  ],
  "ConditionalMessageOnPreInstalledPackages": [
  ],
  "EnvPaths": [
  ],
  "OsRepos": {
    "UbuntuRepos": [
    ]
  },
  "OsServices": [
    {
      "Post": [

      ]
    }
  ],
  "UpdateApt": {
    "IsUpdateApt": true,
    "IsUpdateAptGet": false,
    "IsAptUpgrade": false
  },
  "SymbolicLinks": [
  ],
  "InstallMethods": {
    "InstallUsingUrls": [
    ],
    "InstallUsingOsPackages": {
      "IsAptGet": true,
      "PreScriptLinesWithType": {
        "ScriptLines": [
          "mkdir -p $PWD/downloads",
          "cd $PWD/downloads && mkdir -p $PWD/nginx-install"
        ]
      },
      "PackageNames": [
        "libpcre3",
        "libpcre3-dev",
        "zlib1g",
        "zlib1g-dev",
        "libssl-dev"
      ],
      "PostScriptLinesWithType": {
        "ScriptLines": [
          "cd $PWD/downloads && cd $PWD/nginx-install && wget https://nginx.org/download/nginx-1.19.10.tar.gz",
          "cd $PWD/downloads && cd $PWD/nginx-install && tar -zxf nginx-1.19.10.tar.gz",
          "cd $PWD/downloads && cd $PWD/nginx-install && cd $PWD/nginx-1.19.10 && ./configure && make && make install"
        ]
      }
    }
  }
}
```



---

## Cron : 
```json=
{
  "EnvVars": [
  ],
  "PackageDependencies": [
  ],
  "PathModifiers": [
  ],
  "ConditionalMessageOnPreInstalledPackages": [
  ],
  "EnvPaths": [
  ],
  "OsRepos": {
    "UbuntuRepos": [
    ]
  },
  "OsServices": [
    {
      "Post": [
        {
          "Start": [
            "cron"
          ]
        }
      ]
    }
  ],
  "UpdateApt": {
    "IsUpdateApt": false,
    "IsUpdateAptGet": false,
    "IsAptUpgrade": false
  },
  "SymbolicLinks": [
  ],
  "InstallMethods": {
    "InstallUsingUrls": [
    ],
    "InstallUsingOsPackages": {
      "PackageNames": [
        "cron"
      ],
      "PostScriptLinesWithType": {
        "ScriptLines": [
        ]
      }
    }
  }
}
```