Browse Source

Before upgrade remove any existing locales

Bob Mottram 9 years ago
parent
commit
867b2d17b6
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/freedombone-upgrade

+ 2
- 1
src/freedombone-upgrade View File

146
 if [ -d $PROJECT_DIR ]; then
146
 if [ -d $PROJECT_DIR ]; then
147
     if [ -f $CONFIGURATION_FILE ]; then
147
     if [ -f $CONFIGURATION_FILE ]; then
148
         cd $PROJECT_DIR
148
         cd $PROJECT_DIR
149
+        rm -rf $PROJECT_DIR/locale/*
149
         git_pull $PROJECT_REPO
150
         git_pull $PROJECT_REPO
150
         make install
151
         make install
151
         ${PROJECT_NAME} -c $CONFIGURATION_FILE
152
         ${PROJECT_NAME} -c $CONFIGURATION_FILE
154
 
155
 
155
 # remove the original sipwitch daemon if it exists
156
 # remove the original sipwitch daemon if it exists
156
 if [ -f /etc/init.d/sipwitch ]; then
157
 if [ -f /etc/init.d/sipwitch ]; then
157
-	rm -f /etc/init.d/sipwitch
158
+    rm -f /etc/init.d/sipwitch
158
 fi
159
 fi
159
 
160
 
160
 echo '
161
 echo '