debian: offline postinst
This commit is contained in:
parent
5430dc3418
commit
3ceaae14a3
11
debian/taler-exchange-offline.postinst
vendored
11
debian/taler-exchange-offline.postinst
vendored
@ -19,13 +19,18 @@ function lncfg() {
|
|||||||
case "${1}" in
|
case "${1}" in
|
||||||
configure)
|
configure)
|
||||||
|
|
||||||
addgroup --quiet --system taler-exchange-offline
|
if ! getent group taler-exchange-offline >/dev/null; then
|
||||||
|
addgroup --quiet --system taler-exchange-offline
|
||||||
|
fi
|
||||||
|
|
||||||
adduser --quiet --system --ingroup taler-exchange-offline --home ${TALEROFF_HOME}/httpd taler-exchange-offline
|
if ! getent passwd taler-exchange-offline >/dev/null; then
|
||||||
|
adduser --quiet --system \
|
||||||
|
--ingroup taler-exchange-offline \
|
||||||
|
--home ${TALEROFF_HOME}/httpd taler-exchange-offline
|
||||||
|
fi
|
||||||
|
|
||||||
lncfg taler-exchange-offline taler-exchange-offline /etc/taler/exchange-offline.conf
|
lncfg taler-exchange-offline taler-exchange-offline /etc/taler/exchange-offline.conf
|
||||||
|
|
||||||
# Cleaning
|
|
||||||
echo "All done."
|
echo "All done."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user