Skip to content

Commit

Permalink
added more config options
Browse files Browse the repository at this point in the history
  • Loading branch information
PietsHost committed Apr 15, 2017
1 parent 44d2a2d commit 04f73a6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nc_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,14 @@ sleep 2
# remove http:// and https:// from url to match trusted_domains requirements
url2=${url1#*//}

if [[ -n "$folder" ]]; then
dir="$ncpath/data"
else
len=${#ncpath}-1
ncpath2="${ncpath:0:$len}"
dir="$ncpath2/data"
fi

AUTOCONFIG='$AUTOCONFIG'
cat <<EOF > $ncpath/config/autoconfig.php
<?php
Expand All @@ -1321,7 +1329,7 @@ $AUTOCONFIG = array(
'dbtableprefix' => "",
'adminlogin' => "$adminuser",
'adminpass' => "$adminpwd",
'directory' => "$ncpath/data",
'directory' => "$dir",
'trusted_domains' =>
array (
0 => "$url2",
Expand Down

0 comments on commit 04f73a6

Please sign in to comment.