Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hansson <github@techandme.se>2018-08-09 02:23:48 +0300
committerGitHub <noreply@github.com>2018-08-09 02:23:48 +0300
commit4acfcaab3ce5cdeea2ed20fd115f88ce5feba590 (patch)
tree46b7a24764e5120e0cb0f15d796329004afe7670 /apps/adminer.sh
parent38dc04ce57c9fda3dde20bad20a8cd4610bb6472 (diff)
Change to PHP-FPM (#591)
Diffstat (limited to 'apps/adminer.sh')
-rw-r--r--apps/adminer.sh11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/adminer.sh b/apps/adminer.sh
index 7708c916..a921a854 100644
--- a/apps/adminer.sh
+++ b/apps/adminer.sh
@@ -16,6 +16,9 @@ debug_mode
# Check if root
root_check
+# Warn user about HTTP/2
+http2_warn Adminer
+
# Check that the script can see the external IP (apache fails otherwise)
if [ -z "$WANIP4" ]
then
@@ -38,9 +41,9 @@ sudo wget -q "http://www.adminer.org/latest.php" -O "$ADMINERDIR"/latest.php
sudo ln -s "$ADMINERDIR"/latest.php "$ADMINERDIR"/adminer.php
cat << ADMINER_CREATE > "$ADMINER_CONF"
-Alias /adminer.php "$ADMINERDIR"/adminer.php
+Alias /adminer.php $ADMINERDIR/adminer.php
-<Directory "$ADMINERDIR">
+<Directory $ADMINERDIR>
<IfModule mod_dir.c>
DirectoryIndex adminer.php
@@ -56,7 +59,7 @@ ADMINER_CREATE
# Enable config
check_command a2enconf adminer.conf
-if ! webserver_restart
+if ! restart_webserver
then
msg_box "Apache2 could not restart...
The script will exit."
@@ -68,7 +71,7 @@ http://$ADDRESS/adminer.php
You can download more plugins and get more information here:
https://www.adminer.org
-Your PostgreSQL connection information can be found in $NCPATH/config/confgig.php
+Your PostgreSQL connection information can be found in $NCPATH/config/config.php
In case you try to access Adminer and get 'Forbidden' you need to change the IP in:
$ADMINER_CONF"