mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-07 04:15:44 +02:00
add conditon to check for existing key and crt
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
This commit is contained in:
parent
914c48b1bd
commit
84ed477ec2
9
Makefile
9
Makefile
@ -176,9 +176,12 @@ appstore:
|
||||
cp js/build/news-admin-settings.js* $(appstore_sign_dir)/$(app_name)/js/build
|
||||
|
||||
# export the key and cert to a file
|
||||
mkdir -p $(cert_dir)
|
||||
php ./bin/tools/file_from_env.php "app_private_key" "$(cert_dir)/$(app_name).key"
|
||||
php ./bin/tools/file_from_env.php "app_public_crt" "$(cert_dir)/$(app_name).crt"
|
||||
@if [ ! -f $(cert_dir)/$(app_name).key ] || [ ! -f $(cert_dir)/$(app_name).crt ]; then \
|
||||
echo "Key and cert do not exist"; \
|
||||
mkdir -p $(cert_dir); \
|
||||
php ./bin/tools/file_from_env.php "app_private_key" "$(cert_dir)/$(app_name).key"; \
|
||||
php ./bin/tools/file_from_env.php "app_public_crt" "$(cert_dir)/$(app_name).crt"; \
|
||||
fi
|
||||
|
||||
@if [ -f $(cert_dir)/$(app_name).key ]; then \
|
||||
echo "Signing app files…"; \
|
||||
|
Loading…
Reference in New Issue
Block a user