diff options
author | Eric Hameleers <alien@slackware.com> | 2013-12-09 15:57:57 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-12-09 15:57:57 +0000 |
commit | 1a92eef9da6d7efd9a9421e57bb183c3bf79d372 (patch) | |
tree | beb3c80b03b147930469da421af2f97c74f8fb53 /mirall/build | |
parent | 415bb41ffc0cb494ac74d716fbe2fe43bba6850c (diff) | |
download | asb-1a92eef9da6d7efd9a9421e57bb183c3bf79d372.tar.gz asb-1a92eef9da6d7efd9a9421e57bb183c3bf79d372.tar.xz |
The configuration directory changed name betewen 1.3 and 1.4
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 |