14 lines
336 B
Bash
14 lines
336 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if command -v systemctl >/dev/null 2>&1; then
|
|
systemctl daemon-reload >/dev/null 2>&1 || true
|
|
if [ "$1" = "configure" ]; then
|
|
systemctl enable uce.socket uce.service >/dev/null 2>&1 || true
|
|
systemctl start uce.socket >/dev/null 2>&1 || true
|
|
systemctl restart uce.service >/dev/null 2>&1 || true
|
|
fi
|
|
fi
|
|
|
|
exit 0
|