mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Ensure postinst works idempotently.
This commit is contained in:
parent
1bedbc9c62
commit
0a4a8a9f3f
2
debian/rscds.postinst
vendored
2
debian/rscds.postinst
vendored
@ -9,7 +9,7 @@ PACKAGE=::package::
|
||||
#
|
||||
# Migrate directory location to /etc/davical from /etc/rscds
|
||||
#
|
||||
if [ -d /etc/rscds -a -d /etc/davical ]; then
|
||||
if [ -d /etc/rscds -a -d /etc/davical -a ! -h /etc/rscds ]]; then
|
||||
for CNFFILE in /etc/rscds/*; do
|
||||
if [ -f "${CNFFILE}" ]; then
|
||||
mv "${CNFFILE}" /etc/davical
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user