Skip to content
Snippets Groups Projects
Select Git revision
  • a37dbdf9d3d28cdeb42ac4743b90f191d93d9173
  • master default
  • dev
  • backenduserssmells
  • backendworkoutssmells
  • leaderboardIntegrationTest
  • integrationTestLikes
7 results

tests.py

Blame
  • Forked from Åsmund Haugse / tdt4242-base
    Source project has a limited visibility.
    runLogging 314 B
    #!/bin/bash
    
    if ! [ $(id -u) = 0 ]; then
       echo "This script needs to be run as root." >&2
       exit 1
    fi
    
    clear
    echo "Starting logsystem..."
    sudo -u $SUDO_USER touch ~/warnings.txt # Run as normal user, so the file is created in the right home directory
    glances -C glances.conf --export influxdb -q &
    echo "Done."