40 lines
1.9 KiB
Makefile
40 lines
1.9 KiB
Makefile
# Copyright 2025-2026 Thomas Hintz
|
|
|
|
# This file is part of Nassella.
|
|
|
|
# Nassella 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 version 3 of the License, or (at your option) any
|
|
# later version.
|
|
|
|
# Nassella 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 GNU General Public License for more details.
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with Nassella. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
IMAGE_DEPS := $(IMAGE_DEPS) \
|
|
app/nextcloud/nextcloud_admin_user \
|
|
app/nextcloud/nextcloud_admin_password \
|
|
app/nextcloud/postgres_db \
|
|
app/nextcloud/postgres_user \
|
|
app/nextcloud/postgres_password \
|
|
app/nextcloud/redis_password \
|
|
app/nextcloud/nextcloud.env
|
|
|
|
app/nextcloud/nextcloud_admin_user: $(apps_config)
|
|
bash -c 'source $(apps_config); printf "%s\n" "$$NEXTCLOUD_ADMIN_USER" > $@'
|
|
app/nextcloud/nextcloud_admin_password: $(apps_config)
|
|
bash -c 'source $(apps_config); printf "%s\n" "$$NEXTCLOUD_ADMIN_PASSWORD" > $@'
|
|
app/nextcloud/postgres_db: $(apps_config)
|
|
bash -c 'source ./$(apps_config); printf "%s\n" "$$NEXTCLOUD_POSTGRES_DB" > $@'
|
|
app/nextcloud/postgres_user: $(apps_config)
|
|
bash -c 'source ./$(apps_config); printf "%s\n" "$$NEXTCLOUD_POSTGRES_USER" > $@'
|
|
app/nextcloud/postgres_password: $(apps_config)
|
|
bash -c 'source ./$(apps_config); printf "%s\n" "$$NEXTCLOUD_POSTGRES_PASSWORD" > $@'
|
|
app/nextcloud/redis_password: $(apps_config)
|
|
bash -c 'source ./$(apps_config); printf "%s\n" "$$NEXTCLOUD_REDIS_PASSWORD" > $@'
|
|
app/nextcloud/nextcloud.env: $(apps_config) app/nextcloud/nextcloud.env.tmpl app/nextcloud/make-nextcloud-env.sh
|
|
./app/nextcloud/make-nextcloud-env.sh $(apps_config)
|