Skip to content
Snippets Groups Projects
  • bta's avatar
    5dd5dd27
    esamesync-esame: do not run if /opt/esame was not created. · 5dd5dd27
    bta authored
    The previous patch was wrong for two reasons:
    - you can't put shell commands in a Exec, as there's no shell involved
    - while you could split the two on two different Exec, it would not
      work anyhow because the unit runs as the esamesync user, and it cannot
      create the /opt/esame directory if the admin did not create it beforehand.
    
    This one was tested to work; the machine boots correctly.
    
    Not tested with labmanager; it is not supposed to be working properly
    until you have working copy in /opt/esame, but it would be interesting
    to see how it fails.
    5dd5dd27
    History
    esamesync-esame: do not run if /opt/esame was not created.
    bta authored
    The previous patch was wrong for two reasons:
    - you can't put shell commands in a Exec, as there's no shell involved
    - while you could split the two on two different Exec, it would not
      work anyhow because the unit runs as the esamesync user, and it cannot
      create the /opt/esame directory if the admin did not create it beforehand.
    
    This one was tested to work; the machine boots correctly.
    
    Not tested with labmanager; it is not supposed to be working properly
    until you have working copy in /opt/esame, but it would be interesting
    to see how it fails.