diff options
author | Jeff Lane <jeffrey.lane@canonical.com> | 2017-07-10 18:46:39 -0400 |
---|---|---|
committer | Jeff Lane <jeffrey.lane@canonical.com> | 2017-07-10 18:46:39 -0400 |
commit | d820e100a091e236f0fd5b2ef839d88f7648130f (patch) | |
tree | 76bfc3b39ee8c84128c090752e3aefe3df330479 | |
parent | d00b5254d235767c72bfbeb4ec4ab056cc4e9339 (diff) |
Add sosreport job and fixed issues with attachment job LP: #1703420
-rw-r--r-- | jobs/miscellanea.txt.in | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/jobs/miscellanea.txt.in b/jobs/miscellanea.txt.in index dd025f6..b925a6d 100644 --- a/jobs/miscellanea.txt.in +++ b/jobs/miscellanea.txt.in @@ -325,7 +325,7 @@ plugin: user-interact-verify category_id: com.canonical.plainbox::miscellanea estimated_duration: 5.0 id: miscellanea/device_check -command: udev_resource -l VIDEO NETWORK WIRELESS DISK | tee >([[ $DISPLAY ]] && zenity --text-info --title="Device report") +command: udev_resource -l VIDEO NETWORK WIRELESS DISK ACCELEROMETER | tee >([[ $DISPLAY ]] && zenity --text-info --title="Device report") _summary: Device Check _purpose: Device check @@ -347,7 +347,9 @@ _description: Generates a baseline sosreport of logs and system data plugin: attachment category_id: com.canonical.plainbox::miscellanea estimated_duration: 5.0 -id: miscellanea/sosreport_attach +id: miscellanea/sosreport_attachment +depends: miscellanea/sosreport +user: root command: - filename=`ls -t $PLAINBOX_SESSION_SHARE/sosreport*xz | head -1` \ - [ -e $filename ] && base64 $filename + SOSFILE=`ls -t $PLAINBOX_SESSION_SHARE/sosreport*xz | head -1`; [ -e ${SOSFILE} ] && base64 $SOSFILE +_summary: Attach the baseline sosreport file |