pmaports/main/postmarketos-mvcfg/postmarketos-mvcfg-package.sh
Oliver Smith 4d6a1a2458
main/postmarketos-mvcfg: new package (MR 1713)
Add scripts to move configs from legacy packaging, as described at:
https://postmarketos.org/mvcfg
2020-12-03 13:10:58 +01:00

17 lines
446 B
Bash

#!/bin/sh -e
pkgdir="$1"
dirname="$2"
if [ -z "$dirname" ] || ! [ -d "$pkgdir" ]; then
echo "usage:"
# shellcheck disable=SC2016
echo ' postmarketos-mvcfg-package "$pkgname" "$pkgdir"'
echo "more information:"
echo " https://postmarketos.org/mvcfg"
exit 1
fi
# Create "done" file, so postmarketos-mvcfg-pre-upgrade doesn't do anything
mkdir -p "$pkgdir/etc/postmarketos-mvcfg/done"
touch "$pkgdir/etc/postmarketos-mvcfg/done/$dirname"