Skip to content

Commit

Permalink
manage overwrite.cli.url
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Aug 10, 2017
1 parent 24ccde4 commit 558e3a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/dnsmasq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ EOF
service dnsmasq restart
cd /var/www/nextcloud
sudo -u www-data php occ config:system:set trusted_domains 2 --value=$DOMAIN_
sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://$DOMAIN_
}

cleanup()
Expand Down
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ configure()

cd /var/www/nextcloud
sudo -u www-data php occ config:system:set trusted_domains 4 --value=$DOMAIN_
sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://$DOMAIN_

# delayed in bg so it does not kill the connection, and we get AJAX response
( sleep 2 && systemctl restart apache2 ) &>/dev/null &
Expand Down
3 changes: 3 additions & 0 deletions etc/nextcloudpi-config.d/nc-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ EOF

# Default trusted domain ( only from nextcloudpi-config )
test -f /usr/local/bin/nextcloud-domain.sh && bash /usr/local/bin/nextcloud-domain.sh

# more
sudo -u www-data php occ config:system:set overwriteprotocol --value=https
}

install(){ :; }
Expand Down
1 change: 1 addition & 0 deletions etc/nextcloudpi-config.d/no-ip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ configure()
service noip2 restart
cd /var/www/nextcloud
sudo -u www-data php occ config:system:set trusted_domains 3 --value=$DOMAIN_
sudo -u www-data php occ config:system:set overwrite.cli.url --value=https://$DOMAIN_
}

cleanup()
Expand Down

0 comments on commit 558e3a5

Please sign in to comment.