* Fix potential input error on password generation
This happens on macOS systems when a different locale is
explicitly set.
* Don't use a masked variable name
The paths to some of the software packages are different in Debian as compared to Ubuntu. Hence, we now take the OS into consideration before executing the `apt-get` command.
Also removing some of the extraneous outputs generated by Integromat.
* Creating SSL certificates now works
* Work with single domain
* Move certificate generation into install script
* Download templates from master branch, not release
* Trying to move horizontal rules into separate function
* Delete install_dir if exists already, after confirmation
* Add confirm function to take user conformations
* Resolve warnings on read command without -r option
* Use temporary directory for downloaded templates
* Fix inverted calls to confirm
* nginx template doesn't use global variables now
* docker compose template doesn't depend on global vars now
* Fix port checking for CentOS
* Fix encryption.env to not use global variables
* Fix mongo-init to not use global variables
* Fix docker.env file to not use any global variables
* Fix letsencrypt script to not use any global variables
* Set mongo_database in the docker-compose file
Spotted this after global variables were reduced. The `mongo_database`
was not being used anywhere.
* Move password generation into a function
* Attempt to add watchtower
* Fix port checking in install script for CentOS
* Don't offer to delete install dir if it already exists
* Remove vagrant source for templates (it's a dev-time thing only)
* Exit if running with sudo on macOS
* Fix port checking failing if 8080 is occupied
Also, ports on Linux (especially Ubuntu) are reported as
`:80`, and macOS reports as `.80`, so we have to handle
them both.
* Move goodbye message to a function
* Fix installation fail when path contains space
* Fix script exits after `up` if already running
If there's a project by the name `appsmith` already running
in the docker namespace, then the command `docker-compose up`
is exiting with a non-zero status. This causes the script to
exit because it looks like an error.
* Timeout display now shows a decreasing timer in the message
* Fix docker service not being started correctly on Linux
* Show custom domain in final message, if available
Fixes#318
The issue occurred because code assumes that if docker is already installed, docker-compose would have been installed too. This PR is an attempt to fix it.