Changeset 2732


Ignore:
Timestamp:
Oct 31, 2016, 5:36:47 PM (3 years ago)
Author:
daduve
Message:

Deleting obsolete directories in bind for other languages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • home-linker/trunk/fuentes/home-linker.install/usr/sbin/home-linker

    r2726 r2732  
    209209    [ "${SHARE_LOCALE}" = "" ] || mount --bind /net/server-sync/share $HL_HOME/${SHARE_LOCALE} || true
    210210    if [ "$GRP_USER" = "teachers" ]; then
     211        # DELETE OLD DIRECTORIES FOR OTHER LANGUAGES
     212        for i in es_ES.UTF-8 ca_ES.UTF-8@Valencia ca_ES.UTF-8@valencia; do
     213                SHARETEACHERS_LOCALE_ERASE="$(/usr/bin/xdg_translator "$i"  "Teachers_Share")"
     214                if [ -d $HL_HOME/$SHARETEACHERS_LOCALE_ERASE ]; then
     215                        echo "Borrando $HL_HOME/$SHARETEACHERS_LOCALE_ERASE" >> "$LOG"
     216                        rm -d $HL_HOME/$SHARETEACHERS_LOCALE_ERASE >> "$LOG"
     217                fi
     218        done
     219        [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} || true
     220        for i in es_ES.UTF-8 ca_ES.UTF-8@Valencia ca_ES.UTF-8@valencia; do
     221                DATA_ALUM_ERASE="$(/usr/bin/xdg_translator "$i"  "Data_Alum")"
     222                if [ -d $HL_HOME/$DATA_ALUM_ERASE ]; then
     223                        echo "Borrando $HL_HOME/$DATA_ALUM_ERASE" >> "$LOG"
     224                        rm -d $HL_HOME/$DATA_ALUM_ERASE >> "$LOG"
     225                fi
     226        done
     227       
    211228        [ "${DESKTOP_LOCALE}" = "" ] || mount --bind /net/server-sync/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} || true
    212229        [ -d $HL_HOME/$DATA_ALUM ] || mkdir $HL_HOME/$DATA_ALUM
     
    222239    [ "${SHARE_LOCALE}" = "" ] || mount --bind /run/$HL_USER/share $HL_HOME/${SHARE_LOCALE} || true
    223240    if [ "$GRP_USER" = "teachers" ]; then
     241        # DELETE OLD DIRECTORIES FOR OTHER LANGUAGES
     242        for i in es_ES.UTF-8 ca_ES.UTF-8@Valencia ca_ES.UTF-8@valencia; do
     243                SHARETEACHERS_LOCALE_ERASE="$(/usr/bin/xdg_translator "$i"  "Teachers_Share")"
     244                if [ -d $HL_HOME/$SHARETEACHERS_LOCALE_ERASE ]; then
     245                        echo "Borrando $HL_HOME/$SHARETEACHERS_LOCALE_ERASE" >> "$LOG"
     246                        rm -d $HL_HOME/$SHARETEACHERS_LOCALE_ERASE >> "$LOG"
     247                fi
     248        done
     249        [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} || true
     250        for i in es_ES.UTF-8 ca_ES.UTF-8@Valencia ca_ES.UTF-8@valencia; do
     251                DATA_ALUM_ERASE="$(/usr/bin/xdg_translator "$i"  "Data_Alum")"
     252                if [ -d $HL_HOME/$DATA_ALUM_ERASE ]; then
     253                        echo "Borrando $HL_HOME/$DATA_ALUM_ERASE" >> "$LOG"
     254                        rm -d $HL_HOME/$DATA_ALUM_ERASE >> "$LOG"
     255                fi
     256        done
     257       
    224258        [ "${SHARETEACHERS_LOCALE}" = "" ] || mount --bind /run/$HL_USER/teachers_share $HL_HOME/${SHARETEACHERS_LOCALE} || true
    225259        [ -d $HL_HOME/$DATA_ALUM ] || mkdir $HL_HOME/$DATA_ALUM
Note: See TracChangeset for help on using the changeset viewer.