Skip to content

Commit

Permalink
Update README and update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Ko committed Jan 22, 2018
1 parent 4ef7376 commit 7521356
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
config.ini
adminer.php
.verbose

public/css
public/fonts
public/images
AdminerTheme.php
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ You can point your web server root directory also to `public`.

$EDITOR config/config.conf

## Run initial update for Adminer and submodules

bin/update.sh

## Add the auto-update script to the cron tab of your web server user, mostly `www-data`

# Run every morning at 6 AM
Expand Down
10 changes: 5 additions & 5 deletions bin/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ if [ -s $new ]; then
fi

### Update sub modules
git submodule init
git submodule update

### Update adminer-theme
p=$path/contrib/adminer-theme/lib

ln -sf $p/css $path/public/css
ln -sf $p/fonts $path/public/fonts
ln -sf $p/images $path/public/images

ln -sf $p/plugins/AdminerTheme.php $path/plugins/AdminerTheme.php
[ -L $path/public/css ] || ln -sf $p/css $path/public/css
[ -L $path/public/fonts ] || ln -sf $p/fonts $path/public/fonts
[ -L $path/public/images ] || ln -sf $p/images $path/public/images
[ -L $path/plugins/AdminerTheme.php ] || ln -sf $p/plugins/AdminerTheme.php $path/plugins/AdminerTheme.php

0 comments on commit 7521356

Please sign in to comment.