Compare commits

...

10 Commits

4 changed files with 54 additions and 33 deletions

View File

@ -11,7 +11,7 @@ latest:
- export DEBEMAIL="NOREPLY@`hostname -d`"
- mkdir -p builddir
- uscan --overwrite-download --destdir builddir
- cd ../nextcloud-server-25.0.10
- cd ../nextcloud-server-25.0.13
- dpkg-buildpackage -rfakeroot
- cd - ; cp ../nextcloud-server_*.deb .
artifacts:

View File

@ -17,9 +17,9 @@ git clone https://git.jurisic.org/ijurisic/nextcloud-deb.git
cd nextcloud-deb
git checkout bullseye
uscan --verbose --download-current-version
cd ../nextcloud-server-25.0.10
cd ../nextcloud-server-25.0.13
dch -n
dpkg-buildpackage -rfakeroot -us -uc
cd ..
dpkg -i nextcloud-server_<current_version>_all.deb
dpkg -i nextcloud-server_25.0.13-1~deb11_all.deb
```

23
debian/changelog vendored
View File

@ -1,9 +1,30 @@
nextcloud-server (25.0.13-1~deb11) bullseye; urgency=medium
[ adam ]
* maint: pulled in the last version of nextcloud in the 25.x series (25.0.13)
-- Adam <adam@hax0rbana.org> Thu, 07 Nov 2023 17:23:09 -0600
nextcloud-server (25.0.12-1~deb11) bullseye; urgency=medium
[ adam ]
* maint: pulled in new version of nextcloud (25.0.12)
-- Adam <adam@hax0rbana.org> Thu, 21 Sep 2023 14:02:49 -0500
nextcloud-server (25.0.11-1~deb11) bullseye; urgency=medium
[ adam ]
* maint: pulled in new version of nextcloud (25.0.11)
-- Adam <adam@hax0rbana.org> Thu, 14 Sep 2023 17:32:00 -0500
nextcloud-server (25.0.10-2~deb11) bullseye; urgency=medium
[ ijurisic ]
* updated postinst on sugestion of citronalco (#16)
-- Ivan Jurišić <ivan@jurisic.org> Thu, 22 Aug 2023 12:39:00 -0500
-- Ivan Jurišić <ivan@jurisic.org> Thu, 22 Aug 2023 12:39:00 +0100
nextcloud-server (25.0.10-1~deb11) bullseye; urgency=medium

View File

@ -20,43 +20,43 @@ set -e
export APACHE2_MAINTSCRIPT_HELPER_QUIET=1
case "$1" in
configure)
configure)
# Apache conf
if [ "a2query -c nextcloud"=~"No conf matches nextcloud" ]; then
a2enconf nextcloud || true
apache2ctl restart || true
fi
# Apache conf
if [ "a2query -c nextcloud"=~"No conf matches nextcloud" ]; then
a2enconf nextcloud || true
apache2ctl restart || true
fi
# Apache modules
if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod rewrite || exit $?
apache2_invoke enmod headers || exit $?
apache2_invoke enmod env || exit $?
apache2_invoke enmod dir || exit $?
apache2_invoke enmod mime || exit $?
fi
# Apache modules
if [ -e /usr/share/apache2/apache2-maintscript-helper ]; then
. /usr/share/apache2/apache2-maintscript-helper
apache2_invoke enmod rewrite || exit $?
apache2_invoke enmod headers || exit $?
apache2_invoke enmod env || exit $?
apache2_invoke enmod dir || exit $?
apache2_invoke enmod mime || exit $?
fi
if [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "false" ]; then
echo "Nextcloud is not configured, please use open web browser http://<your_server_ip>/nextcloud"
echo "After configure please run su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web'"
elif [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "true" ]; then
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ upgrade'
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ db:add-missing-indices'
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web' > /dev/null || true
else
echo "Got unexpect answer, occ status can't to read satus of nextcloud. Check php installation."
fi
if [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "false" ]; then
echo "Nextcloud is not configured, please use open web browser http://<your_server_ip>/nextcloud"
echo "After configure please run su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web'"
elif [ "$(su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ status' | grep 'installed:' | cut -f2 -d ':' | xargs)" = "true" ]; then
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ upgrade'
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ db:add-missing-indices'
su 'www-data' -s /bin/sh -c 'php /var/www/nextcloud/occ config:system:set --value true upgrade.disable-web' >/dev/null || true
else
echo "Got unexpect answer, occ status can't to read satus of nextcloud. Check php installation."
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
abort-upgrade | abort-remove | abort-deconfigure) ;;
\
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac