Changeset 2465


Ignore:
Timestamp:
Sep 19, 2016, 1:02:06 PM (3 years ago)
Author:
daduve
Message:

wip

Location:
home-linker/trunk/fuentes/home-linker.install
Files:
3 added
1 edited

Legend:

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

    r2451 r2465  
    22set -x
    33
    4 LOG="/tmp/home_linker.log"
     4
     5echo "Username -> $1"
     6
     7LOG="/var/log/home_linker.log"
    58echo "" > "$LOG"
    69
     
    2225        else
    2326                NHOME=$(python -c "
    24 
    25                 tmp='$LDM_HOME'.split('/')
    26                 last=tmp[-1]
    27                 print '/'.join(tmp[:-1])+'/'+last.strip()
    28 
    29                 ")
     27tmp='$HOME'.split('/')
     28last=tmp[-1]
     29print '/'.join(tmp[:-1])+'/'+last.strip()
     30")
    3031
    3132                HL_HOME="$NHOME"
     
    242243chown $HL_USER:$GRP_USER "$USER_DIRS"
    243244
    244 date >> /tmp/home_linker.log
     245date >> "$LOG"
    245246echo "" >> "$LOG"
    246247echo "Las variables a tener en cuenta son:" >> "$LOG"
     
    249250echo "         \$DESKTOP_LOCALE -> $DESKTOP_LOCALE" >> "$LOG"
    250251echo "" >> "$LOG"
    251 echo "El idioma es $AUX_LANG" >> /tmp/home_linker.log
    252 echo "" >> /tmp/home_linker.log
    253 echo "AFTER HOME LINKER" >> /tmp/home_linker.log
    254 tree $HL_HOME >> /tmp/home_linker.log
    255 echo "" >> /tmp/home_linker.log
    256 cat $HL_HOME/.config/user-dirs.created >> /tmp/home_linker.log
    257 echo "" >> /tmp/home_linker.log
    258 cat $HL_HOME/.config/user-dirs.dirs >> /tmp/home_linker.log
    259 echo "" >> /tmp/home_linker.log
    260 echo "END /usr/bin/home-linker" >> /tmp/home_linker.log
     252echo "El idioma es $AUX_LANG" >> "$LOG"
     253echo "" >> "$LOG"
     254echo "AFTER HOME LINKER" >> "$LOG"
     255tree $HL_HOME >> "$LOG"
     256echo "" >> "$LOG"
     257cat $HL_HOME/.config/user-dirs.created >> "$LOG"
     258echo "" >> "$LOG"
     259cat $HL_HOME/.config/user-dirs.dirs >> "$LOG"
     260echo "" >> "$LOG"
     261echo "END /usr/bin/home-linker" >> "$LOG"
    261262
    262263
Note: See TracChangeset for help on using the changeset viewer.