1. Куча / Говнокод #1704

    +67.9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    38. 38
    39. 39
    40. 40
    41. 41
    42. 42
    43. 43
    44. 44
    45. 45
    46. 46
    47. 47
    48. 48
    49. 49
    50. 50
    51. 51
    52. 52
    53. 53
    54. 54
    55. 55
    56. 56
    57. 57
    58. 58
    59. 59
    60. 60
    61. 61
    62. 62
    63. 63
    64. 64
    65. 65
    66. 66
    67. 67
    68. 68
    69. 69
    70. 70
    71. 71
    #!/bin/bash
    
    ln -s /tomcat/tc1/logs/CR.log /tomcat/logs/tc1.log
    ln -s /tomcat/tc2/logs/CR.log /tomcat/logs/tc2.log
    ln -s /tomcat/tc3/logs/CR.log /tomcat/logs/tc3.log
    ln -s /tomcat/tc4/logs/CR.log /tomcat/logs/tc4.log
    ln -s /tomcat/tc5/logs/CR.log /tomcat/logs/tc5.log
    ln -s /tomcat/tc6/logs/CR.log /tomcat/logs/tc6.log
    ln -s /tomcat/tc7/logs/CR.log /tomcat/logs/tc7.log
    ln -s /tomcat/tc8/logs/CR.log /tomcat/logs/tc8.log
    
    rm -fR /tomcat/webapps
    mv /tomcat/tc1/webapps /tomcat/webapps
    rm -fR /tomcat/tc1/webapps
    rm -fR /tomcat/tc2/webapps
    rm -fR /tomcat/tc3/webapps
    rm -fR /tomcat/tc4/webapps
    rm -fR /tomcat/tc5/webapps
    rm -fR /tomcat/tc6/webapps
    rm -fR /tomcat/tc7/webapps
    rm -fR /tomcat/tc8/webapps
    ln -s /tomcat/webapps /tomcat/tc1/webapps
    ln -s /tomcat/webapps /tomcat/tc2/webapps
    ln -s /tomcat/webapps /tomcat/tc3/webapps
    ln -s /tomcat/webapps /tomcat/tc4/webapps
    ln -s /tomcat/webapps /tomcat/tc5/webapps
    ln -s /tomcat/webapps /tomcat/tc6/webapps
    ln -s /tomcat/webapps /tomcat/tc7/webapps
    ln -s /tomcat/webapps /tomcat/tc8/webapps
    rm -fR /tomcat/tc2/conf/Catalina/localhost
    rm -fR /tomcat/tc3/conf/Catalina/localhost
    rm -fR /tomcat/tc4/conf/Catalina/localhost
    rm -fR /tomcat/tc5/conf/Catalina/localhost
    rm -fR /tomcat/tc6/conf/Catalina/localhost
    rm -fR /tomcat/tc7/conf/Catalina/localhost
    rm -fR /tomcat/tc8/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc2/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc3/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc4/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc5/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc6/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc7/conf/Catalina/localhost
    ln -s /tomcat/tc1/conf/Catalina/localhost /tomcat/tc8/conf/Catalina/localhost
    rm -fR /tomcat/tc2/lib
    rm -fR /tomcat/tc3/lib
    rm -fR /tomcat/tc4/lib
    rm -fR /tomcat/tc5/lib
    rm -fR /tomcat/tc6/lib
    rm -fR /tomcat/tc7/lib
    rm -fR /tomcat/tc8/lib
    ln -s /tomcat/tc1/lib /tomcat/tc2/lib
    ln -s /tomcat/tc1/lib /tomcat/tc3/lib
    ln -s /tomcat/tc1/lib /tomcat/tc4/lib
    ln -s /tomcat/tc1/lib /tomcat/tc5/lib
    ln -s /tomcat/tc1/lib /tomcat/tc6/lib
    ln -s /tomcat/tc1/lib /tomcat/tc7/lib
    ln -s /tomcat/tc1/lib /tomcat/tc8/lib
    rm -fR /tomcat/tc2/common
    rm -fR /tomcat/tc3/common
    rm -fR /tomcat/tc4/common
    rm -fR /tomcat/tc5/common
    rm -fR /tomcat/tc6/common
    rm -fR /tomcat/tc7/common
    rm -fR /tomcat/tc8/common
    ln -s /tomcat/tc1/common /tomcat/tc2/common
    ln -s /tomcat/tc1/common /tomcat/tc3/common
    ln -s /tomcat/tc1/common /tomcat/tc4/common
    ln -s /tomcat/tc1/common /tomcat/tc5/common
    ln -s /tomcat/tc1/common /tomcat/tc6/common
    ln -s /tomcat/tc1/common /tomcat/tc7/common
    ln -s /tomcat/tc1/common /tomcat/tc8/common

    Запостил: yvu, 27 Августа 2009

    Комментарии (3) RSS

    Добавить комментарий