From 27932f9023e9318080968b25695bae053c6cb1d3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 3 Oct 2008 17:00:17 +0000 Subject: [PATCH] Update build live cd howto --- build/live/Howto.txt | 19 +++++++++---------- dev/initdemo/initdemo.sh | 2 +- dev/initdemo/removedemo.sh | 29 +++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 dev/initdemo/removedemo.sh diff --git a/build/live/Howto.txt b/build/live/Howto.txt index 9ae90a9cda8..0715645e308 100644 --- a/build/live/Howto.txt +++ b/build/live/Howto.txt @@ -56,20 +56,19 @@ exists. You can comment lines: ;extension=mhash.so ;extension=snmp.so -10) Copy files demo_drop_dolibarr_database.php and demo_load_dolibarr_data.php -found in this directory into -\slax\changes\var\www\htdocs\ -Thoose files could be used to clean a Dolibarr install or load demo datas. - -11) Personalized your desktop. +10) Personalized your desktop. Add a link to application "firefox http://localhost/dolibarr/htdocs/index.php" +Add a link to application +"/var/www/htdocs/dolibarr/dev/initdemo/initdemo.sh" +Add a link to application +"/var/www/htdocs/dolibarr/dev/initdemo/removedemo.sh" -12) Reboot again on your USB key. +11) Reboot again on your USB key. -13) Now you can run Dolibarr install process +12) Now you can run Dolibarr install process http://localhost/dolibarr/htdocs/install/index.php -or build a CD with command +or copy USB key content to build another one quickly. +or build a CD with command (TODO). -or copy USB key content to build antoher one quickly. diff --git a/dev/initdemo/initdemo.sh b/dev/initdemo/initdemo.sh index 649be395658..20be642c8be 100644 --- a/dev/initdemo/initdemo.sh +++ b/dev/initdemo/initdemo.sh @@ -13,7 +13,7 @@ DIALOG=${DIALOG=dialog} DIALOG="$DIALOG --ascii-lines" fichtemp=`tempfile 2>/dev/null` || fichtemp=/tmp/test$$ trap "rm -f $fichtemp" 0 1 2 5 15 -$DIALOG --title "Purge de Dolibarr" --clear \ +$DIALOG --title "Reload Dolibarr database" --clear \ --inputbox "Mysql database name :" 16 51 dolibarrdemo 2> $fichtemp valret=$? case $valret in diff --git a/dev/initdemo/removedemo.sh b/dev/initdemo/removedemo.sh new file mode 100644 index 00000000000..0969426a3c2 --- /dev/null +++ b/dev/initdemo/removedemo.sh @@ -0,0 +1,29 @@ +#!/bin/sh +#------------------------------------------------------ +# Script to remove setup of a Dolibarr installation. +# Note: "dialog" tool need to be available. +# +# Régis Houssin - regis@dolibarr.fr +# Laurent Destailleur - eldy@users.sourceforge.net +#------------------------------------------------------ +# WARNING: This script erase all data of database +#------------------------------------------------------ + +DIALOG=${DIALOG=dialog} +DIALOG="$DIALOG --ascii-lines" +fichtemp=`tempfile 2>/dev/null` || fichtemp=/tmp/test$$ +trap "rm -f $fichtemp" 0 1 2 5 15 +$DIALOG --title "Remove Dolibarr install" --clear \ + --yesno "Do you confirm ?" 15 40 +valret=$? +case $valret in + 0) +base=`cat $fichtemp`;; + 1) +exit;; + 255) +exit;; +esac + +# ---------------------------- remove conf file +rm ../../htdocs/conf/conf.php