Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-backports > by-pkgid > 99bb5c75fafda52560cfe64060eb8e09 > scriptlet

nextcloud-16.0.9-1.mga7.noarch.rpm

PREIN

/bin/sh
# on update from previous release, move data directory from
# /var/lib/nextcloud to /var/lib/nextcloud/data
if [ $1 -gt 1 ] ; then
    if [ -d /var/lib/nextcloud/ -a ! -d /var/lib/nextcloud/data ]; then
        mv /var/lib/nextcloud /var/lib/nextcloud.tmp
        mkdir /var/lib/nextcloud
        mv /var/lib/nextcloud.tmp /var/lib/nextcloud/data
    fi
fi