diff options
author | Tilman Vatteroth | 2017-02-13 09:28:05 +0100 |
---|---|---|
committer | Tilman Vatteroth | 2017-02-13 09:28:05 +0100 |
commit | f68559e82cf77825ab31caf73579739b7eafdc29 (patch) | |
tree | d32e32552a2e79217b57ec75e6cf63dc68edff83 /upmpdcli.install | |
parent | a68d5a4e58d02cc7a57569962f7bcf3078a6d744 (diff) | |
download | aur-f68559e82cf77825ab31caf73579739b7eafdc29.tar.gz |
- fixed permission issue of /etc/upmpdcli.conf
- added backup for /etc/upmpdcli.conf
Diffstat (limited to 'upmpdcli.install')
-rw-r--r-- | upmpdcli.install | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/upmpdcli.install b/upmpdcli.install index c7ed41e5ccff..6279315b05a3 100644 --- a/upmpdcli.install +++ b/upmpdcli.install @@ -5,6 +5,9 @@ post_install() { if ! getent passwd upmpdcli >/dev/null; then useradd -g upmpdcli --system upmpdcli -s /bin/false -d / >/dev/null fi + if [[ ! "$(stat -c '%U:%G' /etc/upmpdcli.conf)" == "upmpdcli:upmpdcli" ]]; then + chown upmpdcli:upmpdcli /etc/upmpdcli.conf + fi } post_upgrade() { |