1 |
mrjhb3 |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/init-ibays mezzanine_patched_e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/init-ibays |
2 |
|
|
--- e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/init-ibays 2003-07-02 13:11:13.000000000 -0500 |
3 |
|
|
+++ mezzanine_patched_e-smith-ibays-2.4.0/root/etc/e-smith/events/actions/init-ibays 2013-09-30 21:58:54.148036446 -0500 |
4 |
|
|
@@ -26,31 +26,9 @@ |
5 |
|
|
use Errno; |
6 |
|
|
use esmith::util; |
7 |
|
|
|
8 |
|
|
-#------------------------------------------------------------ |
9 |
|
|
-# Now create the /home/e-smith subdirectories. An upgrade from |
10 |
|
|
-# the original e-smith 3.0 can sometimes corrupt this structure, |
11 |
|
|
-# so make sure every single directory is there. |
12 |
|
|
-# |
13 |
|
|
-# Before we start, remember if there was a /home/e-smith directory. |
14 |
|
|
-# If so, we will do a factory reset afterward to make sure there |
15 |
|
|
-# is a reasonable default configuration. |
16 |
|
|
-#------------------------------------------------------------ |
17 |
|
|
- |
18 |
|
|
-my $files = "/home/e-smith/files"; |
19 |
|
|
- |
20 |
|
|
-unless (-l "$files/primary") |
21 |
|
|
-{ |
22 |
|
|
- if (-d "$files/primary") |
23 |
|
|
- { |
24 |
|
|
- rename("$files/primary", "$files/ibays/Primary") |
25 |
|
|
- or warn("Could not rename primary i-bay: $!"); |
26 |
|
|
- } |
27 |
|
|
- symlink("$files/ibays/Primary", "$files/primary") |
28 |
|
|
- or warn("Could not create primary legacy symlink: $!"); |
29 |
|
|
-} |
30 |
|
|
- |
31 |
|
|
# Populate pre-defined Primary i-bay |
32 |
|
|
# Start with top level owner/permissions |
33 |
|
|
+my $files = "/home/e-smith/files"; |
34 |
|
|
my $perms = 0755; |
35 |
|
|
my $owner = 'root'; |
36 |
|
|
my $group = 'root'; |