1 |
diff -Nur e-smith-ibays-2.4.0.old7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore |
diff -Nur e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify e-smith-ibays-2.4.0.bz7011/root/etc/e-smith/events/actions/ibay-modify |
2 |
--- e-smith-ibays-2.4.0.old7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 1970-01-01 01:00:00.000000000 +0100 |
--- e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify 2013-01-31 22:31:37.000000000 +0100 |
3 |
+++ e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 2014-05-04 14:46:42.497540282 +0200 |
+++ e-smith-ibays-2.4.0.bz7011/root/etc/e-smith/events/actions/ibay-modify 2015-01-03 22:24:18.806618131 +0100 |
|
@@ -0,0 +1 @@ |
|
|
+#added to create the /etc/e-smith/skel/ibay/tmp folder |
|
|
diff -Nur e-smith-ibays-2.4.0.old/root/etc/e-smith/events/actions/ibay-modify e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify |
|
|
--- e-smith-ibays-2.4.0.old/root/etc/e-smith/events/actions/ibay-modify 2014-03-22 18:05:25.531733369 +0100 |
|
|
+++ e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/ibay-modify 2014-03-23 10:32:16.403155934 +0100 |
|
4 |
@@ -158,6 +158,10 @@ |
@@ -158,6 +158,10 @@ |
5 |
#-------------------------------------------------- |
#-------------------------------------------------- |
6 |
# main directory is writeable only by root |
# main directory is writeable only by root |
26 |
} |
} |
27 |
} |
} |
28 |
|
|
29 |
|
diff -Nur e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/init-ibays e-smith-ibays-2.4.0.bz7011/root/etc/e-smith/events/actions/init-ibays |
30 |
|
--- e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/init-ibays 2015-01-03 23:58:49.961908458 +0100 |
31 |
|
+++ e-smith-ibays-2.4.0.bz7011/root/etc/e-smith/events/actions/init-ibays 2015-01-03 23:48:40.862552687 +0100 |
32 |
|
@@ -59,5 +59,27 @@ |
33 |
|
"/home/e-smith/files/ibays/Primary/html/index.htm"); |
34 |
|
} |
35 |
|
|
36 |
|
+#we want to create the folder /tmp if enabled in all Ibays(enabled by default) |
37 |
|
+#introduced by the bug [SME: 7011] |
38 |
|
+my $accounts = esmith::AccountsDB->open_ro or warn "Could not open account database: $!"; |
39 |
|
+my @ibays = $accounts->ibays; |
40 |
|
+my $uid = '102'; #or www |
41 |
|
+my $gid = '102'; #or www |
42 |
|
+ |
43 |
|
+foreach my $ibay (@ibays) |
44 |
|
+{ |
45 |
|
+ #Then we retrieve the name of the ebay |
46 |
|
+ my $key = $ibay->key; |
47 |
|
+ my $tmpdb = $ibay->prop('PHPTmpDir') || 'enabled'; |
48 |
|
+ my $path = (('/home/e-smith/files/ibays/') . $key . '/tmp'); |
49 |
|
+ |
50 |
|
+ #we test the condition if /tmp exists or if it is disabled in the Ibay |
51 |
|
+ if (!-d $path || $tmpdb eq "disabled") |
52 |
|
+ { |
53 |
|
+ mkdir $path, 0700 or warn "Could not create dir $path: $!"; |
54 |
|
+ chown $uid, $gid, $path or warn "Could not chown dir $path: $!"; |
55 |
|
+ } |
56 |
|
+} |
57 |
|
+ |
58 |
|
exit (0); |
59 |
|
|
60 |
|
diff -Nur e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore e-smith-ibays-2.4.0.bz7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore |
61 |
|
--- e-smith-ibays-2.4.0/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 1970-01-01 01:00:00.000000000 +0100 |
62 |
|
+++ e-smith-ibays-2.4.0.bz7011/root/etc/e-smith/skel/ibay/tmp/.cvs_ignore 2015-01-03 23:58:20.889702229 +0100 |
63 |
|
@@ -0,0 +1 @@ |
64 |
|
+#added to create the /etc/e-smith/skel/ibay/tmp folder |