logoalt Hacker News

jjgreenyesterday at 12:36 PM2 repliesview on HN

key-value pairs where the = cannot be surrounded by spaces, so I have to write

  [Service]
  Type=oneshot
  WorkingDirectory={{ home }}/current/
  Environment=RAILS_ENV=production
  ExecStart=/bin/sh -lc "bin/db-backup --verbose"
which fills me with sadness

Replies

voxic11yesterday at 1:10 PM

Whitespace immediately before or after the equals sign is completely ignored by the parser. Its the standard INI format.

show 1 reply
yjftsjthsd-hyesterday at 1:00 PM

What? You absolutely can have spaces; most of mine look more like

  [Service]
  Type             = oneshot
  WorkingDirectory = %h/current/
  Environment      = RAILS_ENV=production
  ExecStart        = /bin/sh -lc "bin/db-backup --verbose"
show 1 reply