updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / alfresco-community-tomcat-fr / alfresco-community-tomcat-fr.install
blobd24d21b8d09a73f2c3c134e0f635ee43fe57a2ce
1 post_install() {
2     echo '==>> Adding the French Alfresco Language Pack to web-client-config-custom.xml in'
3     echo -n '==>> /opt/Alfresco/tomcat/shared/classes/alfresco/extension/ ... '
4     
5     cd /opt/Alfresco/tomcat/shared/classes/alfresco/extension/
6     sed -i 's@<!-- <language locale="fr_FR">French</language> -->@<language locale="fr_FR">French</language>@' web-client-config-custom.xml || return 1
8     echo 'done.'
11 post_remove() {
12     echo '==>> Removing the French Alfresco Language Pack from web-client-config-custom.xml in'
13     echo -n '==>> /opt/Alfresco/tomcat/shared/classes/alfresco/extension/ ... '
14     
15     cd /opt/Alfresco/tomcat/shared/classes/alfresco/extension/
16     sed -i 's@<language locale="fr_FR">French</language>@<!-- <language locale="fr_FR">French</language> -->@' web-client-config-custom.xml || return 1
17     
18     echo 'done.'
21 op=$1
22 shift
23 $op $*