diff options
Diffstat (limited to 'headphones.install')
-rw-r--r-- | headphones.install | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/headphones.install b/headphones.install index 2dfb8347452d..07c854508797 100644 --- a/headphones.install +++ b/headphones.install @@ -1,22 +1,26 @@ post_upgrade() { + # needed because started before hooks + sysemd-sysusers + systemd-tmpfiles --create + if (( $(vercmp "0.5.18.r159.gda9287d7-2" "$2") > 0 )); then if [[ -f /opt/headphones/config.ini && ! -f /var/lib/headphones/config.ini ]]; then - cp -a /opt/headphones/config.ini /var/lib/headphones/ + cp -a /opt/headphones/config.ini /var/lib/headphones/config.ini echo "Copied config.ini from /opt/headphones/ -> /var/lib/headphones/" fi if [[ -f /opt/headphones/headphones.db && ! -f /var/lib/headphones/headphones.db ]]; then - cp -a /opt/headphones/headphones.db /var/lib/headphones/ + cp -a /opt/headphones/headphones.db /var/lib/headphones/headphones.db echo "Copied headphones.db from /opt/headphones/ -> /var/lib/headphones/" fi if [[ -d /opt/headphones/logs && ! -d /var/lib/headphones/logs ]]; then - cp -a /opt/headphones/logs /var/lib/headphones/ + cp -a /opt/headphones/logs /var/lib/headphones/logs echo "Copied logs from /opt/headphones/ -> /var/lib/headphones/" fi if [[ -d /opt/headphones/cache && ! -d /var/lib/headphones/cache ]]; then - cp -a /opt/headphones/cache /var/lib/headphones/ + cp -a /opt/headphones/cache /var/lib/headphones/cache echo "Copied cache from /opt/headphones/ -> /var/lib/headphones/" fi fi |