Update install.sh

This commit is contained in:
Grégory Soutadé 2012-05-31 21:38:47 +02:00
parent 59a020e241
commit 8ca99707ce
3 changed files with 10 additions and 6 deletions

2
README
View File

@ -2,7 +2,7 @@ KissCount is personnal account software delivered under GPL v3 licence terms.
Current version is 0.3
Qt4 (>= 4.7), libqt4-sql-sqlite and libofx are needed (Linux only)
Qt4 (>= 4.7), libqt4-sql-sqlite and libofx (Linux only) are needed
If you use web view, edit database.php and set $BDD_FILE, it's higly recommanded to use an SSL certificate.

View File

@ -2,7 +2,7 @@ KissCount est un logiciel de gestion de comptes personnels délivré sous licenc
La version actuelle est 0.3
Qt4 (>= 4.7), libqt4-sql-sqlite et libofx sont nécessaires (Uniquement pour Linux)
Qt4 (>= 4.7), libqt4-sql-sqlite et libofx (Uniquement pour Linux) sont nécessaires
Si vous utilisez la version web pour visualiser vos comptes, éditez d'abord le fichier database.php en positionnant correctement la variable $BDD_FILE, il est fortement recommandé d'utiliser un certificat SSL.

View File

@ -19,10 +19,11 @@
# You should have received a copy of the GNU General Public License
# along with KissCount. If not, see <http://www.gnu.org/licenses/>.
ROOT_DIR=/usr
SHARE_DIR=$ROOT_DIR/share/kisscount
LIB_DIR=$ROOT_DIR/lib/kisscount
BIN_DIR=$ROOT_DIR/bin
DEST_DIR=""
ROOT_DIR=$DEST_DIR/usr
SHARE_DIR=$DEST_DIR$ROOT_DIR/share/kisscount
LIB_DIR=$DEST_DIR$ROOT_DIR/lib/kisscount
BIN_DIR=$DEST_DIR$ROOT_DIR/bin
case "$1" in
--install|-i)
@ -34,6 +35,7 @@ case "$1" in
sudo mkdir -p $SHARE_DIR
sudo mkdir -p $LIB_DIR
sudo mkdir -p ~/.local/share/kisscount
sudo cp -r ressources/* $SHARE_DIR
sudo cp kc $BIN_DIR
sudo cp -r lib/* $LIB_DIR
@ -47,6 +49,8 @@ case "$1" in
sudo rm -rf $LIB_DIR
sudo rm -f $BIN_DIR/kc
echo "Private database (~/.local/share/kisscount) not deleted"
echo
echo "KissCount successfully uninstalled !"
;;