diff options
Diffstat (limited to 'games/adom/doinst.sh')
-rw-r--r-- | games/adom/doinst.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/games/adom/doinst.sh b/games/adom/doinst.sh new file mode 100644 index 0000000000000..ef11d52bc324d --- /dev/null +++ b/games/adom/doinst.sh @@ -0,0 +1,15 @@ +config() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ -s "$OLD" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... +} + +config etc/adom_ds.cfg.new +config var/lib/adom/HISCORE.new |