From 706f8be4b571a2b3de96406ab5bfaf2ec8c8a33f Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Mon, 29 May 2017 15:27:13 +0200 Subject: [PATCH] avoid error message if trusted does not exist (#247) --- nextcloud-startup-script.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nextcloud-startup-script.sh b/nextcloud-startup-script.sh index 44963df8..ef324184 100644 --- a/nextcloud-startup-script.sh +++ b/nextcloud-startup-script.sh @@ -463,8 +463,11 @@ echo "+--------------------------------------------------------------------+" printf "${Color_Off}\n" # Set trusted domain in config.php -bash "$SCRIPTS"/trusted.sh -rm -f "$SCRIPTS"/trusted.sh +if [ -f "$SCRIPTS"/trusted.sh ] +then + bash "$SCRIPTS"/trusted.sh + rm -f "$SCRIPTS"/trusted.sh +fi # Prefer IPv6 sed -i "s|precedence ::ffff:0:0/96 100|#precedence ::ffff:0:0/96 100|g" /etc/gai.conf