Skip to content

Commit

Permalink
Update generate.sh
Browse files Browse the repository at this point in the history
In fact you are right, I removed my variables proposition.
But I add a "global" for the DATADIR line because there is more than one line for "__DATADIR__" in config.toml.in file.
Did I misunderstand something?
  • Loading branch information
tazou committed Jun 22, 2021
1 parent f0704ef commit 6c87883
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions os-build/exherbo/generate.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
#!/bin/sh

BINDIR="/usr/local/bin"
SYSCONFDIR="/etc"
DATADIR="/var/lib/sozu"
RUNDIR="/run"

substitute() {
sed -e "s:__BINDIR__:${BINDIR}:" \
-e "s:__SYSCONFDIR__:${SYSCONFDIR}:" \
-e "s:__DATADIR__:${DATADIR}:" \
-e "s:__DATADIR__:${DATADIR}:g" \
-e "s:__RUNDIR__:${RUNDIR}:" \
-e "s:__SOZU_USER__:root:" \
-e "s:__SOZU_GROUP__:root:" \
Expand Down

0 comments on commit 6c87883

Please sign in to comment.