Skip to content

Commit

Permalink
Switch PHP comment syntax for INI files
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Ko committed Sep 19, 2017
1 parent df958de commit 6ece716
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions bin/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ cfg=$path/config/config.ini

[ ! -s $cfg ] && echo 'Missing configuration file!' && exit 1

### Get config
. $cfg
### Get config, transform from PHP ini to shell
eval $(grep -v '^;' $cfg | sed 's/ *\(=\) */\1/g')

### Temp file for download
new=$(mktemp)
Expand Down
46 changes: 23 additions & 23 deletions config/config.ini.dist
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
###
### MySQL socket
###
mysql=localhost:/var/run/mysqld/mysqld.sock
;
; MySQL socket
;
mysql = localhost:/var/run/mysqld/mysqld.sock

###
### Adminer Version
### latest stable version: http://www.adminer.org/latest[-mysql][-de].php
###
;
; Adminer Version
; latest stable version: http://www.adminer.org/latest[-mysql][-de].php
;

### All, multi-language
# version=latest.php
; All, multi-language
; version = latest.php

### MySQL only, multi-language
version=latest-mysql.php
; MySQL only, multi-language
version = latest-mysql.php

### MySQL only, german
# version=latest-mysql-de.php
; MySQL only, german
; version = latest-mysql-de.php

###
### Adminer Theme
### https://github.com/pematon/adminer-theme
###
### If not set, use default theme
###
#theme=default-orange
#theme=default-blue
#theme=default-green
;
; Adminer Theme
; https://github.com/pematon/adminer-theme
;
; If not set, use default theme
;
; theme = default-orange
; theme = default-blue
; theme = default-green

0 comments on commit 6ece716

Please sign in to comment.