#!/bin/sh ver_new="$1" ver_old="$2" if [ "$(apk version -t "$ver_old" "0.3.0-r0")" = '<' ]; then # Copy /etc/muacme.conf to /etc/muacme/muacme.conf *if* it was modified by the user. if apk audit -q /etc | grep -qx etc/muacme.conf && ! [ -f /etc/muacme/muacme.conf ]; then cp -a /etc/muacme.conf /etc/muacme/muacme.conf fi fi