Ignore:
Timestamp:
Nov 9, 2015, 5:51:05 PM (8 years ago)
Author:
andersk
Message:
Replace empty scriptsVhostPath with ‘.’

Trac: #167
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/locker/sbin/vhostadd

    r1901 r2735  
    3333printf "Docroot: $home/web_scripts" >&2
    3434read subdir
     35subdir=${subdir%/}
     36docroot=$home/web_scripts$subdir
     37path=${subdir#/}
     38path=${path:-.}
    3539
    3640tmpfile=$(mktemp -t vhostadd.XXXXXX) || exit $?
     
    5155
    5256cat <<EOF >> "$tmpfile"
    53 apacheDocumentRoot: $home/web_scripts$subdir
     57apacheDocumentRoot: $docroot
    5458apacheSuexecUid: $uid
    5559apacheSuexecGid: $gid
     
    6973cat <<EOF >> "$tmpfile"
    7074scriptsVhostAccount: $user_dn
    71 scriptsVhostDirectory: ${subdir#/}
     75scriptsVhostDirectory: $path
    7276EOF
    7377
Note: See TracChangeset for help on using the changeset viewer.