1
0

debuggage

This commit is contained in:
Daniel Tartavel 2019-03-26 21:35:16 +01:00
parent 997b22a559
commit ac42d4a12e
3 changed files with 10 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/bash #!/usr/bin/bash
######### Script d'etablissement de la fiche technique d'un PC ######### ######### Script d'etablissement de la fiche technique d'un PC #########
FILE="identification.txt" FILE="$DESKTOP/identification.txt"
usage() usage()
{ echo ' Usage:' { echo ' Usage:'

View File

@ -1,5 +1,10 @@
#!/usr/bin/sh #!/usr/bin/sh
#./identPC.sh
DESKTOP=`grep XDG_DESKTOP_DIR $1/.config/user-dirs.dirs`
DESKTOP=${DESKTOP##*}
export $DESKTOP
./identPC.sh
/usr/bin/kate ./checklist.txt /usr/bin/kate ./checklist.txt
grep -is -m 2 "numéro de série" ./identification.txt >tmp.txt grep -is -m 2 "numéro de série" ./identification.txt >tmp.txt
while read LIGNE while read LIGNE
@ -15,4 +20,4 @@ do
done < tmp.txt done < tmp.txt
rm -f tmp.txt rm -f tmp.txt
mkdir $DIRNAME mkdir $DIRNAME
rsync --port 10073 -aP *.txt "lalis69.ddns.net::lalis-ordis/$DIRNAME" rsync --port 10073 -aP $DESKTOP/*.txt "lalis69.ddns.net::lalis-ordis/$DIRNAME"

View File

@ -1,6 +1,6 @@
Summary: Install LALIS packages and configuration Summary: Install LALIS packages and configuration
Name: task-lalis Name: task-lalis
Version: 2 Version: 2.1
Release: %mkrel 1 Release: %mkrel 1
License: GPLv3 License: GPLv3
Group: Tools Group: Tools
@ -13,6 +13,7 @@ Source4: identPC.sh
Source5: sync_check.sh Source5: sync_check.sh
Source6: checklist.txt Source6: checklist.txt
Source7: test.desktop Source7: test.desktop
Requires: kate
Requires: openssh-server Requires: openssh-server
Requires: sshfs-fuse Requires: sshfs-fuse
Requires: celestia Requires: celestia