mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-13 03:23:34 +00:00
Ensure postinst works idempotently.
This commit is contained in:
parent
cbb246d99a
commit
0d5845fc5b
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