2022-11-25 12:58:08 +03:00
|
|
|
# @copyright Copyright (c) 2022 Arthur Schiwon <blizzz@arthur-schiwon.de>
|
2017-06-27 18:37:08 +03:00
|
|
|
#
|
|
|
|
# @author Arthur Schiwon <blizzz@arthur-schiwon.de>
|
|
|
|
#
|
|
|
|
# @license GNU AGPL app_version 3 or any later app_version
|
|
|
|
#
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
# published by the Free Software Foundation, either app_version 3 of the
|
|
|
|
# License, or (at your option) any later app_version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2022-05-20 12:29:02 +03:00
|
|
|
# GNU Affero General Public License for more details
|
2017-06-27 18:37:08 +03:00
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
app_name=nextcloud
|
2024-01-25 18:20:57 +03:00
|
|
|
app_version=27.1.6-0
|
2023-12-18 20:06:25 +03:00
|
|
|
app_upgrade_from=26.0.10-0
|
2017-06-29 00:34:16 +03:00
|
|
|
|
2023-06-14 13:28:05 +03:00
|
|
|
ucs_version=5.0
|
2017-06-27 18:37:08 +03:00
|
|
|
|
2017-06-29 00:34:16 +03:00
|
|
|
docker_repo=nextcloud
|
|
|
|
docker_login=`cat ~/.docker-account-user`
|
|
|
|
docker_pwd=`cat ~/.docker-account-pwd`
|
|
|
|
|
2017-06-28 16:53:49 +03:00
|
|
|
.PHONY: all
|
2017-06-29 00:34:16 +03:00
|
|
|
all: push-files docker
|
2017-06-27 18:37:08 +03:00
|
|
|
|
2017-06-28 16:53:49 +03:00
|
|
|
.PHONY: add-version
|
2017-06-27 18:37:08 +03:00
|
|
|
add-version:
|
|
|
|
if [ -z ${app_ver} ] ; then echo "no original app_version specified"; exit 13; fi
|
|
|
|
if [ -z ${app_newver} ] ; then echo "no target app_version specified"; exit 13; fi
|
2020-08-03 23:10:41 +03:00
|
|
|
univention-appcenter-control new-version "$(ucs_version)/$(app_name)=$(app_ver)" "$(ucs_version)/$(app_name)=$(app_newver)"
|
2017-06-27 18:37:08 +03:00
|
|
|
|
2017-06-28 16:53:49 +03:00
|
|
|
.PHONY: push-files
|
|
|
|
push-files:
|
2020-08-13 18:49:27 +03:00
|
|
|
univention-appcenter-control upload --noninteractive $(ucs_version)/$(app_name)=$(app_version) \
|
2021-11-03 22:26:40 +03:00
|
|
|
attributes \
|
2018-11-24 00:53:13 +03:00
|
|
|
env \
|
2017-06-28 16:53:49 +03:00
|
|
|
restore_data_before_setup \
|
|
|
|
setup \
|
|
|
|
restore_data_after_setup \
|
|
|
|
preinst \
|
|
|
|
inst \
|
|
|
|
store_data \
|
|
|
|
uinst \
|
|
|
|
update_app_version \
|
|
|
|
nextcloud.schema \
|
|
|
|
i18n/en/README_INSTALL_EN \
|
|
|
|
i18n/de/README_INSTALL_DE \
|
2018-11-24 00:54:41 +03:00
|
|
|
i18n/en/README_POST_INSTALL_EN \
|
|
|
|
i18n/de/README_POST_INSTALL_DE \
|
2017-06-28 16:53:49 +03:00
|
|
|
i18n/en/README_UNINSTALL_EN \
|
2018-11-24 00:53:13 +03:00
|
|
|
i18n/de/README_UNINSTALL_DE \
|
2018-11-24 00:54:41 +03:00
|
|
|
i18n/en/README_POST_UPDATE_EN \
|
|
|
|
i18n/de/README_POST_UPDATE_DE
|
2020-08-13 18:49:27 +03:00
|
|
|
univention-appcenter-control set --noninteractive $(ucs_version)/$(app_name)=$(app_version) \
|
2023-06-14 13:28:05 +03:00
|
|
|
--json '{"DockerImage": "ghcr.io/nextcloud/univention-app:$(app_version)", "UMCOptionsAttributes": "nextcloudEnabled", "WebInterface": "/nextcloud", "MinPhysicalRam": "512", "RequiredUcsVersion": "5.0-0", "SupportedUCSVersions": "5.0-0", "RequiredAppVersionUpgrade": "$(app_upgrade_from)"}'
|
2017-06-29 00:34:16 +03:00
|
|
|
|
|
|
|
.PHONY: docker
|
|
|
|
docker:
|
|
|
|
if [ `systemctl is-active docker` = "inactive" ] ; then sudo systemctl start docker; fi
|
2018-06-07 13:38:11 +03:00
|
|
|
sudo docker build -t $(docker_repo)/univention-app:$(app_version) .
|