This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Format of command: ./xampp.sh new.website.name.com | |
# arguments: name=virtual adress site | |
# edited files by script: /opt/lampp/etc/extra/httpd-vhosts.conf, /etc/hosts | |
XAMPP_DIR="/opt/lampp" # Youre installation folder | |
PROJECTS_DIR="/home/alexey/webprojects" # Youre projects folder | |
#todo: change /home/alexey to variable $HOME, but if run script whit sudo $home = root | |
PROJECT_DIR="$PROJECTS_DIR/$1" | |
# Number of expected arguments |
NewerOlder