Non-interactive AWS install by running a single script.
Complete non-interactive AWS install with one line.
Squash of 28 commits:
Initial commit of complete install script.
Must be sudo.
Non interactive prostgres.
Install mysql with unique password.
Service file.
Add init file.
Nginx config.
Script contains aws specific settings.
Update references after rename.
Prevent localhost ssh prompt.
Postfix with policyd.
Typo in localhost. Postfix package has other name. sudo -l session needs oneliners.
More sudo commands to prevent permission problems.
Change in existing file.
Change in existing file must be referenced.
Switch order.
Postfix comment.
Old way to generate password, less sudo.
todo login
Must use private ip and login instructions.
Starting up.
Fixed and checked various todos.
Use service. Set host name. Go to default dir.
Only works on next login.
Only replace first host.
Cleaned up the comments.
Link to nginx config.
Move to aws dir.
Update links to aws for interactive install.
Existing script stays at the same location.
Change directory. Use the new init scripts for gitlab service and nginx. Use the branch for file downloads. Update with newest changes to installation.md.
Correct reference.
Use master branch since we need the nginx condfig and use absolute paths.
Need to copy with sudo.
My git user uses bash (so .bash_profile), but I think it should work the same for sh shell.
Full warning message:
***** WARNING *****
gl-setup is not in your $PATH.
Since gl-setup MUST be run from the PATH (and not as src/gl-setup or such),
you must fix this before running gl-setup. The simplest way is to add
PATH=/home/git/bin:$PATH
to the end of your bashrc or similar file. You can even simply run that
command manually each time you log in and want to run a gitolite command.
Run /home/git/gitolite/src/gl-system-install -h for a detailed usage message.
When running `rake gitlab_status` to check if it's safe to continue on installation in step 4, you need to use `RAILS_ENV=production` or else you will receive an error about "permission denied for user root@localhost..."