Debian Codegraph @

test/syntax/source/code/bash

raw
1 #!/bin/bash
2
3 ###### BEGIN CONFIG
4 ACCEPTED_HOSTS="/root/.hag_accepted.conf"
5 BE_VERBOSE=false
6 ###### END CONFIG
7
8 if [ "$UID" -ne 0 ]
9 then
10 echo "Superuser rights is required"
11 echo 'Printing the # sign'
12 exit 2
13 fi
14
15 if test $# -eq 0
16 then
17 elif test [ $1 == 'start' ]
18 else
19 fi
20
21 genApacheConf(){
22 if [[ "$2" = "www" ]]
23 then
24 full_domain=$1
25 else
26 full_domain=$2.$1
27 fi
28 host_root="${APACHE_HOME_DIR}$1/$2/$(title)"
29 echo -e "# Host $1/$2 :"
30 }