- or download this
hesco@marcus8:~/sandbox$ grep `whoami` /etc/passwd
hesco:x:1000:1000:Hugh Esco,,,:/home/hesco:/bin/bash
...
total 1
drwxr-xr-x 2 hesco hesco 48 2012-01-22 13:51 .
drwxr-xr-x 11 hesco hesco 480 2012-01-22 13:50 ..
- or download this
hesco@marcus8:~/sandbox$ perl t/14-ymd_provision_apache.t
...
# got: 'ERROR: user - 1000 is unable to create t/conf/etc/apa
+che2/sites-available/test_suite/test.example.org'
# expected: 't/conf/etc/apache2/sites-available/test_suite/test.ex
+ample.org'
# File [ERROR: user - 1000 is unable to create t/conf/etc/apache2/site
+s-available/test_suite/test.example.org] does not exist
- or download this
my $new_vhost_path = "$apache_vhost_base_path/" . $site->{'vhost_ser
+ver_name'};
if( -e $new_vhost_path ){
...
}
}
}
- or download this
- my $parent_directory = $new_vhost_path =~ s,^(.*)/(.*),$1,;
+ my $parent_directory = $new_vhost_path;
+ $parent_directory =~ s,^(.*)/.*$,$1,;
warn "We hope we can write to: $parent_directory ";