https://github.com/kwn/bashscripts
Some useful bash scripts
https://github.com/kwn/bashscripts
Last synced: about 2 months ago
JSON representation
Some useful bash scripts
- Host: GitHub
- URL: https://github.com/kwn/bashscripts
- Owner: kwn
- Created: 2013-05-01T01:32:11.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-23T09:53:43.000Z (about 12 years ago)
- Last Synced: 2025-02-12T18:55:29.079Z (4 months ago)
- Language: Shell
- Size: 174 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
bashsctipts
===========Some useful bash scripts
makevhost
---------
Tool for creating an apache vhosts. Useful with Debian/Ubuntu apache dist (with sites-available/enabled directories). This tool uses a little bit of sudo, so be careful. See the script before use. You can change #directories section or apache username if you have non standard configuration.Usage:
`makevhost VHOSTDIRECTORY [gitrepository]`
Example:
`makevhost com.test.dev [email protected]:someuser/somerepo`
Will:
* Create directories for vhost in /var/www/vhosts/com.test.dev
* Clone someuser's somerepo into [...]/com.test.dev/httpdocs
* Fix permissions (chown yourusername:apacheusername [...]/httpdocs -R)
* Create vhost file in [...]/sites-available
* Enable vhost with a2ensite
* Append 127.0.0.1 server.name to /etc/hosts
* Reload apache configuration