source: Slackware/i2p/doinst.sh @ b6b1491

Last change on this file since b6b1491 was b6b1491, checked in by sponge <sponge@…>, 13 years ago

Final Slackbuild cleanups, ant slackpkg target added.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1#!/bin/sh
2
3INST_DIR=directory
4
5( cd install
6
7echo
8for i in *.config ; {
9        if [ -f $INST_DIR/$i ] ; then
10                echo "Please check ${INST_DIR}${i}, as there is a new version."
11                cp $i $INST_DIR/$i.new
12        else
13                cp $i $INST_DIR/$i
14        fi
15}
16
17)
18
19( cd $INST_DIR
20        if [ -f blocklist.txt ] ; then
21                echo "Please check ${INST_DIR}blocklist.txt, as there is a new version."
22        else
23                mv blocklist.txt.new blocklist.txt
24        fi
25)
26
27( cd $INST_DIR/eepsite
28        if [ -f jetty.xml ] ; then
29                rm jetty.xml.new
30        else
31                mv jetty.xml.new jetty.xml
32        fi
33)
34
35( cd $INST_DIR/eepsite/docroot
36        if [ -f index.html ] ; then
37                rm index.html.new
38        else
39                mv index.html.new index.html
40        fi
41        if [ -f favicon.ico ] ; then
42                rm favicon.ico.new
43        else
44                mv favicon.ico.new favicon.ico
45        fi
46)
47
48echo
49echo "FINISHING I2P INSTALLATION. PLEASE WAIT."
50
51cd $INST_DIR
52sh postinstall.sh || (
53  echo "ERROR: failed execution of postinstall.sh. Please"
54  echo "cd into i2p installation directory and run "
55  echo "postinstall.sh manually with ./postinstall.sh"
56  exit 1
57)
58
59sleep 10
60
61sh i2prouter stop || exit 1
62
63echo
64echo "Installation finished."
65echo
66
67exit
Note: See TracBrowser for help on using the repository browser.