~linkat/+junk/linkat-client-18.04

« back to all changes in this revision

Viewing changes to debian/linkat-client/usr/share/linkat/linkat-client/linkat-client.sh

  • Committer: Pablo Vigo
  • Date: 2019-02-08 09:54:15 UTC
  • Revision ID: pvigo@xtec.cat-20190208095415-6li0ljluae3fa6n3
10: new .desktop for LXDE, chaged permissions in shared folders, debconf modified

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
echo "NEW_DOMAIN=$NEW_DOMAIN" >> $CONF_FILE
106
106
echo "NEW_SERVIDOR_IP=$NEW_SERVIDOR_IP" >> $CONF_FILE
107
107
 
 
108
## Copia plantilles per modificar
 
109
rm -rf "$FILES_LINKAT"/*
 
110
cp -av "$PLANTILLES"/* "$FILES_LINKAT"/
 
111
 
 
112
cd "$FILES_LINKAT"/
 
113
 
108
114
## Genera unitats pam_mount
109
115
RECURSOS="$(smbclient -L $NEW_SERVIDOR_IP -g -N 2>/dev/null|grep -i ^disk|awk -F '|' '{print $2}')"
110
 
cd $PLANTILLES
111
116
 
112
117
if [ -f volume-final ] ; then
113
118
        rm volume-final
118
123
 
119
124
sed -i '/<pam_mount>/r volume-final' pam_mount.conf.xml
120
125
 
121
 
## Copia plantilles per modificar
122
 
rm -rf "$FILES_LINKAT"/*
123
 
cp -av "$PLANTILLES"/* "$FILES_LINKAT"/
124
 
 
125
 
 
126
 
cd "$FILES_LINKAT"/
 
126
## Modifica variables
127
127
 
128
128
sed -i s/__DOMAIN__/"$NEW_DOMAIN"/g *
129
129
sed -i s/__IP__/"$NEW_SERVIDOR_IP"/g *