debian: fix config migration

This commit is contained in:
André Roth
2024-09-16 21:09:31 +02:00
parent 0e9f047c37
commit fe2c623638
2 changed files with 11 additions and 4 deletions
+2 -4
View File
@@ -16,10 +16,8 @@ set -e
case "$1" in
install|upgrade)
if [ -f /etc/aptly-api.conf ]; then
echo "migrating /etc/aptly-api.conf to /etc/aptly.conf ..."
cp /etc/aptly-api.conf /etc/aptly.conf
mv /etc/aptly-api.conf /etc/aptly-api.conf.old
sed -i 's_/var/lib/aptly-api_~/.aptly_' /etc/aptly.conf
echo "migrating /etc/aptly-api.conf ..."
mv /etc/aptly-api.conf /etc/aptly-api.conf.migrate
fi
;;