post-upgrade (739B)
1 #!/bin/sh 2 # the iso put fastfetch's config there before this package had it: apk left ours next to it as .apk-new 3 [ -f /etc/xdg/fastfetch/config.jsonc.apk-new ] && mv -f /etc/xdg/fastfetch/config.jsonc.apk-new /etc/xdg/fastfetch/config.jsonc 4 # load them now too, no reboot needed 5 /usr/lib/dinit/modules 6 # chamesle is rolling: the version the system says it runs is this package's, not the iso it came from 7 v=@VERSION@ 8 if grep -q '^ID=chamesle$' /etc/os-release 2>/dev/null; then 9 sed -i -E "s/^(PRETTY_NAME=\"Chamesle Linux )[0-9][0-9.]*/\1$v/; s/^VERSION=\"[0-9][0-9.]*/VERSION=\"$v/; s/^VERSION_ID=.*/VERSION_ID=\"$v\"/" /etc/os-release 10 [ -f /etc/issue ] && sed -i -E "s/^(Chamesle Linux )[0-9][0-9.]*/\1$v/" /etc/issue 11 fi 12 exit 0