46 |
+ #we test the condition if ibay folder exists |
+ #we test the condition if ibay folder exists |
47 |
+ unless (-d $path ) |
+ unless (-d $path ) |
48 |
{ |
{ |
49 |
mkdir $path, 0700 or warn "Could not create dir $path: $!"; |
mkdir $path, 0600 or warn "Could not create dir $path: $!"; |
50 |
chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |
chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |
51 |
} |
} |
52 |
- #we test the condition if /session exists or if it is disabled in the Ibay |
- #we test the condition if /session exists or if it is disabled in the Ibay |
56 |
+ #we test the condition if /tmp exists |
+ #we test the condition if /tmp exists |
57 |
+ unless (-d $path) |
+ unless (-d $path) |
58 |
+ { |
+ { |
59 |
+ mkdir $path, 0700 or warn "Could not create dir $path: $!"; |
+ mkdir $path, 0600 or warn "Could not create dir $path: $!"; |
60 |
+ chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |
+ chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |
61 |
+ } |
+ } |
62 |
+ |
+ |
64 |
+ #we test the condition if /session exists |
+ #we test the condition if /session exists |
65 |
+ unless (-d $path) |
+ unless (-d $path) |
66 |
{ |
{ |
67 |
mkdir $path, 0700 or warn "Could not create dir $path: $!"; |
mkdir $path, 0600 or warn "Could not create dir $path: $!"; |
68 |
chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |
chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |