diff options
author | Mario Finelli | 2016-03-10 19:07:54 +0000 |
---|---|---|
committer | Mario Finelli | 2016-03-10 19:07:54 +0000 |
commit | 07cdc411e8f7dc7077381af85b99b2f6677f4228 (patch) | |
tree | a4f66c64d50b36e1239dc51eaa9ac755c705b6bc | |
parent | e55cc6cb05e744c9702f9d892caa7c2c2c490e4e (diff) | |
download | aur-07cdc411e8f7dc7077381af85b99b2f6677f4228.tar.gz |
Move apache configuration to new file
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 11 | ||||
-rw-r--r-- | httpd-adminer.conf | 9 |
3 files changed, 10 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore index 20b7b00faac9..af605a05126d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ !PKGBUILD !.SRCINFO !adminer.install +!httpd-adminer.conf @@ -23,17 +23,6 @@ package() { install -D -m644 $srcdir/${pkgname}-${pkgver}.php $_instdir/index.php - # It's similar to phpMyAdmin - cat >$pkgdir/etc/webapps/$pkgname/apache.example.conf <<EOF - Alias /${pkgname} "/usr/share/webapps/${pkgname}" - <Directory "/usr/share/webapps/${pkgname}"> - AllowOverride All - Options FollowSymlinks - Require all granted - php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/" - </Directory> -EOF - cp $pkgdir/etc/webapps/$pkgname/apache.example.conf $pkgdir/etc/httpd/conf/extra/httpd-${pkgname}.conf # echo "Include conf/extra/httpd-${pkgname}.conf" >> $pkgdir/etc/httpd/conf/httpd.conf diff --git a/httpd-adminer.conf b/httpd-adminer.conf new file mode 100644 index 000000000000..544e7eeb6f22 --- /dev/null +++ b/httpd-adminer.conf @@ -0,0 +1,9 @@ +# vim: ft=apache + +Alias /adminer "/usr/share/webapps/adminer" +<Directory "/usr/share/webapps/adminer"> + AllowOverride All + Options FollowSymlinks + Require all granted + php_admin_value open_basedir "/srv/:/tmp/:/usr/share/webapps/:/etc/webapps:/usr/share/pear/" +</Directory> |