diff options
Diffstat (limited to '')
-rwxr-xr-x | mirall/build/mirall.SlackBuild | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/mirall/build/mirall.SlackBuild b/mirall/build/mirall.SlackBuild index c3ff2fea..a9272a15 100755 --- a/mirall/build/mirall.SlackBuild +++ b/mirall/build/mirall.SlackBuild @@ -184,8 +184,9 @@ cd build make DESTDIR=$PKG install 2>&1 | tee $OUTPUT/install-${PRGNAM}.log cd - -# Do not clobber existing configuration: -mv -i $PKG/etc/owncloud/sync-exclude.lst{,.new} +# Do not clobber existing configuration +# (note: this directory changed its name between 1.3 and 1.4): +mv -i $PKG/etc/ownCloud/sync-exclude.lst{,.new} # Add this to the doinst.sh: mkdir -p $PKG/install @@ -206,7 +207,14 @@ config() { done } -config etc/owncloud/sync-exclude.lst.new +# Copy an existing old configuration over to the new directory: +if [ -f etc/owncloud/sync-exclude.lst -a ! -f etc/ownCloud/sync-exclude.lst ]; then + echo "** Copying configuration file from /etc/owncloud to /etc/ownCloud" + echo "** NOTE: Directory '/etc/owncloud' is no longer used." + cp -a etc/owncloud/sync-exclude.lst etc/ownCloud/ +fi + +config etc/ownCloud/sync-exclude.lst.new # Update the desktop database: if [ -x usr/bin/update-desktop-database ]; then |